New to Telerik Document ProcessingStart a free 30-day trial

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)
Parameters:sortRangeCellRange

The sort range.

sortConditionsISortCondition[]

The sort conditions.

Properties

Gets the number of sort conditions currently applied to the worksheet.

C#
public int Count { get; }
Property Value:

The count.

Gets the collection of sort conditions that define how the range is sorted.

C#
public IEnumerable<ISortCondition> SortConditions { get; }
Property Value:

The sort conditions.

Gets the cell range to which the sort conditions are applied.

C#
public CellRange SortRange { get; }
Property Value:

The sort range.