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 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
    int

    Equals(object)

    Compare the ids

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

    GetHashCode()

    The hash code is based on the id.

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

    ToString()

    The id as a string

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

    Operators

    operator ==(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
    bool

    operator !=(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
    bool

    Implements

    IComparable<T>
    In this article
    • Constructors
      • ParagraphUnitId(string)
    • Properties
      • Id
    • Methods
      • CompareTo(ParagraphUnitId)
      • Equals(object)
      • GetHashCode()
      • ToString()
    • Operators
      • operator ==(ParagraphUnitId, ParagraphUnitId)
      • operator !=(ParagraphUnitId, ParagraphUnitId)
    • Implements
    Back to top Generated by DocFX