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