Class SegmentReference
Serializable reference to a segment that can be used to reference a specific segment in a paragraph and file e.g. when processing content for preview.
Inherited Members
Namespace: SdlSdl.FileTypeSupportFrameworkIntegrationApi
Assembly: Sdl.FileTypeSupport.Framework.Core.dll
Syntax
public class SegmentReference
Constructors
SegmentReference(FileId, ParagraphUnitId, SegmentId)
Construction from file, paragraph and segment ids
Declaration
public SegmentReference(FileId fileId, ParagraphUnitId paraId, SegmentId segId)
Parameters
Type | Name | Description |
---|---|---|
FileId | fileId | |
ParagraphUnitId | paraId | |
SegmentId | segId |
Properties
FileId
File id for the file that the segment reference applies to
Declaration
public FileId FileId { get; set; }
Property Value
Type | Description |
---|---|
FileId |
ParagraphUnitId
Id of the paragraph unit that the segment reference applies to
Declaration
public ParagraphUnitId ParagraphUnitId { get; set; }
Property Value
Type | Description |
---|---|
ParagraphUnitId |
SegmentId
Id of the segment that the reference applies to
Declaration
public SegmentId SegmentId { get; set; }
Property Value
Type | Description |
---|---|
SegmentId |
Methods
Equals(object)
Considered equal if file, paragraph and segment ids match.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj |
Returns
Type | Description |
---|---|
bool |
Overrides
GetHashCode()
Hash code is computed by combining file, paragraph unit and segment ids.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |