Search Results for

    Show / Hide Table of Contents

    Class SortSpecification

    Encapsulates a set of criteria used for sorting translation units.

    The order in which the different criteria are added to a sort specification is essential. Only if two translation units are equivalent according to a sort criterium, the next relevant criterium will be considered in order to decide which of the translation units comes first and so on.

    The sort specification consists of a collection of SortCriterium objects which in turn may refer to system fields or filter names, and include a specification whether to sort ascending or descending. Typical examples are: Sco/D UsD/D which sorts descending by score and descending by last usage date.

    Inheritance
    object
    SortSpecification
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemory
    Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
    Syntax
    [DataContract]
    public class SortSpecification

    Constructors

    SortSpecification()

    Initializes a new instance with default values.

    Declaration
    public SortSpecification()

    SortSpecification(string)

    Initializes a new instance of the SortSpecification class from a string.

    Declaration
    public SortSpecification(string sortSpecification)
    Parameters
    Type Name Description
    string sortSpecification

    The string containing the serialized form of a sort specification.

    Properties

    Count

    Gets the number of criteria in this sort specification.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    Criteria

    Gets or sets the list of sort criteria.

    Declaration
    [DataMember]
    public List<SortCriterium> Criteria { get; }
    Property Value
    Type Description
    List<SortCriterium>

    this[int]

    Gets or sets the criterium at the specified index in the list.

    Declaration
    public SortCriterium this[int index] { get; set; }
    Parameters
    Type Name Description
    int index

    The index.

    Property Value
    Type Description
    SortCriterium

    The sort criterium at the given index.

    Methods

    Add(SortCriterium)

    Adds a new sort criterium to the list.

    Declaration
    public void Add(SortCriterium sc)
    Parameters
    Type Name Description
    SortCriterium sc

    The sort criterium.

    In this article
    • Constructors
      • SortSpecification()
      • SortSpecification(string)
    • Properties
      • Count
      • Criteria
      • this[int]
    • Methods
      • Add(SortCriterium)
    Back to top Generated by DocFX