Class ParagraphUnit
The main element of translatable content. Contains a source and target Paragraph element.
Inherited Members
Namespace: Sdl.Core.Bcm.BcmModel
Assembly: Sdl.Core.Bcm.BcmModel.dll
Syntax
public class ParagraphUnit : MetadataContainer, ICloneable<ParagraphUnit>
Constructors
ParagraphUnit()
Initializes a new instance of the Paragraph
Declaration
public ParagraphUnit()
Properties
CommentDefinitionIds
Gets or sets the list of Comment
Declaration
public List<int> CommentDefinitionIds { get; set; }
Property Value
Type | Description |
---|---|
System. |
The list of Comment |
Remarks
This holds any Paragraph
ContextList
Gets or sets the list of Context IDs associated with this instance.
Declaration
public IList<int> ContextList { get; set; }
Property Value
Type | Description |
---|---|
System. |
The list of Context IDs associated with this instance. |
Id
Gets or sets the identifier.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System. |
The identifier. |
Index
Gets or sets the index of this instance in the Parent
Declaration
public int Index { get; set; }
Property Value
Type | Description |
---|---|
System. |
The index of this instance in the Parent |
IsLocked
Gets or sets a value indicating whether this instance is locked.
Declaration
public bool IsLocked { get; set; }
Property Value
Type | Description |
---|---|
System. |
|
IsStructure
Gets or sets a value indicating whether this instance is a structure Paragraph
Declaration
public bool IsStructure { get; set; }
Property Value
Type | Description |
---|---|
System. |
|
Remarks
A structure Paragraph
ParentFile
Gets or sets the parent File.
Declaration
public File ParentFile { get; set; }
Property Value
ParentFileId
Gets or sets the parent File identifier.
Declaration
public string ParentFileId { get; set; }
Property Value
Type | Description |
---|---|
System. |
The parent File identifier. |
SegmentPairs
Gets all the source and target Segment in this instance, paired as Segment
Declaration
public SegmentPairCollection SegmentPairs { get; }
Property Value
Type | Description |
---|---|
Segment |
The segment pairs. |
Source
Gets or sets the source Paragraph.
Declaration
public Paragraph Source { get; set; }
Property Value
StructureContextId
Gets or sets the id of the structure Context.
Declaration
public int StructureContextId { get; set; }
Property Value
Type | Description |
---|---|
System. |
The id of the structure Context. |
Target
Gets or sets the target Paragraph.
Declaration
public Paragraph Target { get; set; }
Property Value
Methods
Clone()
Clones this instance.
Declaration
public ParagraphUnit Clone()
Returns
Type | Description |
---|---|
Paragraph |
A deep clone of this instance. |
Equals(ParagraphUnit)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ParagraphUnit other)
Parameters
Type | Name | Description |
---|---|---|
Paragraph |
other | An object to compare with this object. |
Returns
Type | Description |
---|---|
System. |
true if the current object is equal to the |
Equals(Object)
Performs a deep-equals comparison.
System.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System. |
obj |
Returns
Type | Description |
---|---|
System. |
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
A hash code for this instance. |
Overrides
ToString()
Converts to string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
A System. |