Interface
ISortCondition

Defines a condition for sorting rows or columns in a worksheet range, specifying which cell property to compare and how to order the results.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model.Sorting

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public interface ISortCondition

Properties

Comparer

Gets the comparer that defines the ordering logic for this sort condition.

Declaration

cs-api-definition
IComparer<SortValue> Comparer { get; }

Property Value

IComparer<SortValue>

The comparer used for sorting.

RelativeIndex

Gets the zero-based offset within the sort range that identifies the row or column containing values to compare.

Declaration

cs-api-definition
int RelativeIndex { get; }

Property Value

int

The index of the row or column that is key for sorting relative to the sorted range.

Methods

GetValue(Cells, int, int)

Extracts the sort-relevant value from the specified cell for comparison during sorting.

Declaration

cs-api-definition
object GetValue(Cells cells, int rowIndex, int columnIndex)

Parameters

cells

Cells

The cells.

rowIndex

int

The row index.

columnIndex

int

The column index.

Returns

object

The value of the specified cell.