SortState
Class
Manages the active sort configuration for a worksheet, including the sorted range and applied sort conditions.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model.Sorting
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
C#
public class SortState
Inheritance: objectSortState
Methods
Removes all sort conditions and clears the sorted range.
C#
public void Clear()
Applies the specified sort conditions to the given cell range and sorts the data.
C#
public void Set(CellRange sortRange, params ISortCondition[] sortConditions)
The sort range.
sortConditionsISortCondition[]The sort conditions.
Properties
Gets the number of sort conditions currently applied to the worksheet.
C#
public int Count { get; }
The count.
Gets the collection of sort conditions that define how the range is sorted.
C#
public IEnumerable<ISortCondition> SortConditions { get; }
The sort conditions.