Search Results for

    Show / Hide Table of Contents

    Struct ParagraphUnitId

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

    Implements
    System.IComparable<ParagraphUnitId>
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.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
    System.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
    System.String

    Methods

    CompareTo(ParagraphUnitId)

    Compares the ids.

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

    Equals(Object)

    Compare the ids

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

    GetHashCode()

    The hash code is based on the id.

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

    ToString()

    The id as a string

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.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
    System.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
    System.Boolean

    Implements

    System.IComparable<T>

    On this page

    • Constructors
      • ParagraphUnitId(String)
    • Properties
      • Id
    • Methods
      • CompareTo(ParagraphUnitId)
      • Equals(Object)
      • GetHashCode()
      • ToString()
    • Operators
      • Equality(ParagraphUnitId, ParagraphUnitId)
      • Inequality(ParagraphUnitId, ParagraphUnitId)
    • Implements
    Back to top Generated by DocFX