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:
Inheritance
Inherited Members
Namespace: Sdl.LanguagePlatform.TranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
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 |
---|---|---|
System.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 |
---|---|
System.Int32 |
Criteria
Gets or sets the list of sort criteria.
Declaration
public List<SortCriterium> Criteria { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<SortCriterium> |
Item[Int32]
Gets or sets the criterium at the specified index in the list.
Declaration
public SortCriterium this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | 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. |