Search Results for

    Show / Hide Table of Contents

    Class ParagraphUnit

    The main element of translatable content. Contains a source and target Paragraph element.

    Inheritance
    System.Object
    ExtensionDataContainer
    MetadataContainer
    ParagraphUnit
    Implements
    System.IEquatable<MetadataContainer>
    ICloneable<ParagraphUnit>
    System.IEquatable<ParagraphUnit>
    Inherited Members
    MetadataContainer.GetMetadata(String)
    MetadataContainer.SetMetadata(String, String)
    MetadataContainer.Equals(MetadataContainer)
    MetadataContainer.ShouldSerialize_metadata()
    MetadataContainer.Metadata
    ExtensionDataContainer.ExtensionData
    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 ParagraphUnit class.

    Declaration
    public ParagraphUnit()

    Properties

    CommentDefinitionIds

    Gets or sets the list of CommentDefinition IDs.

    Declaration
    public List<int> CommentDefinitionIds { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<System.Int32>

    The list of CommentDefinition IDs.

    Remarks

    This holds any ParagraphUnit level comments.

    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.Collections.Generic.IList<System.Int32>

    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.String

    The identifier.

    Index

    Gets or sets the index of this instance in the ParentFile.

    Declaration
    public int Index { get; set; }
    Property Value
    Type Description
    System.Int32

    The index of this instance in the ParentFile.

    IsLocked

    Gets or sets a value indicating whether this instance is locked.

    Declaration
    public bool IsLocked { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is locked; otherwise, false.

    IsStructure

    Gets or sets a value indicating whether this instance is a structure ParagraphUnit.

    Declaration
    public bool IsStructure { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is a structure ParagraphUnit; otherwise, false.

    Remarks

    A structure ParagraphUnit is not usually used as translatable content.

    ParentFile

    Gets or sets the parent File.

    Declaration
    public File ParentFile { get; set; }
    Property Value
    Type Description
    File

    The parent File.

    ParentFileId

    Gets or sets the parent File identifier.

    Declaration
    public string ParentFileId { get; set; }
    Property Value
    Type Description
    System.String

    The parent File identifier.

    SegmentPairs

    Gets all the source and target Segment in this instance, paired as SegmentPair elements.

    Declaration
    public SegmentPairCollection SegmentPairs { get; }
    Property Value
    Type Description
    SegmentPairCollection

    The segment pairs.

    Source

    Gets or sets the source Paragraph.

    Declaration
    public Paragraph Source { get; set; }
    Property Value
    Type Description
    Paragraph

    The source Paragraph.

    StructureContextId

    Gets or sets the id of the structure Context.

    Declaration
    public int StructureContextId { get; set; }
    Property Value
    Type Description
    System.Int32

    The id of the structure Context.

    Target

    Gets or sets the target Paragraph.

    Declaration
    public Paragraph Target { get; set; }
    Property Value
    Type Description
    Paragraph

    The target Paragraph.

    Methods

    Clone()

    Clones this instance.

    Declaration
    public ParagraphUnit Clone()
    Returns
    Type Description
    ParagraphUnit

    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
    ParagraphUnit other

    An object to compare with this object.

    Returns
    Type Description
    System.Boolean

    true if the current object is equal to the other parameter; otherwise, false.

    Equals(Object)

    Performs a deep-equals comparison.
    System.Object.Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    MetadataContainer.Equals(Object)

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    A hash code for this instance.

    Overrides
    MetadataContainer.GetHashCode()

    ToString()

    Converts to string.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A System.String that represents this instance.

    Implements

    System.IEquatable<>
    ICloneable<T>
    System.IEquatable<>

    On this page

    Back to top Generated by DocFX