Sort condition that orders cell values according to a custom list sequence, placing matching items first.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model.Sorting
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public sealed class CustomValuesSortCondition : OrderedSortConditionBase<ICellValue>, ISortCondition
Inheritance: objectSortConditionBase<ICellValue>OrderedSortConditionBase<ICellValue>CustomValuesSortCondition
Implements:
Inherited Members
Constructors
Initializes a new instance of the CustomValuesSortCondition class with a custom list defining the sort order.
Methods
Determines whether the specified object is a CustomValuesSortCondition with the same custom list and settings.
Properties
Gets the comparer that ranks values by their position in the custom list.
public override IComparer<SortValue> Comparer { get; }
The comparer used for sorting.
Overrides:
Gets the ordered array of strings defining the custom sort sequence.
public string[] CustomList { get; }
The custom list.
Gets the cell value property definition used for custom list comparison.
protected override IPropertyDefinition<ICellValue> PropertyDefinition { get; }
The property definition of the property which is used for sorting.
Overrides: