Search Results for

    Show / Hide Table of Contents

    Struct ParagraphUnitId

    Type safe wrapper around a unique identifier for paragraph units, used in IParagraphUnitProperties.

    Implements
    IComparable<ParagraphUnitId>
    Inherited Members
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Sdl.FileTypeSupport.Framework.NativeApi
    Assembly: Sdl.FileTypeSupport.Framework.Core.dll
    Syntax
    public struct ParagraphUnitId : IComparable<ParagraphUnitId>

    Constructors

    ParagraphUnitId(String)

    Construction from a string representation of the paragraph unit id.

    Declaration
    public ParagraphUnitId(string id)
    Parameters
    Type Name Description
    String id

    The id as a string

    Properties

    Id

    Trans-unit id as a string

    Declaration
    public readonly string Id { get; }
    Property Value
    Type Description
    String

    Methods

    CompareTo(ParagraphUnitId)

    Compares the ids.

    Declaration
    public int CompareTo(ParagraphUnitId other)
    Parameters
    Type Name Description
    ParagraphUnitId other
    Returns
    Type Description
    Int32

    Equals(Object)

    Compare the ids

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

    GetHashCode()

    The hash code is based on the id.

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

    ToString()

    The id as a string

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

    Operators

    Equality(ParagraphUnitId, ParagraphUnitId)

    Compares the ids.

    Declaration
    public static bool operator ==(ParagraphUnitId first, ParagraphUnitId second)
    Parameters
    Type Name Description
    ParagraphUnitId first
    ParagraphUnitId second
    Returns
    Type Description
    Boolean

    Inequality(ParagraphUnitId, ParagraphUnitId)

    Compares the ids.

    Declaration
    public static bool operator !=(ParagraphUnitId first, ParagraphUnitId second)
    Parameters
    Type Name Description
    ParagraphUnitId first
    ParagraphUnitId second
    Returns
    Type Description
    Boolean

    Implements

    System.IComparable<T>
    In this article
    Back to top Generated by DocFX