Class
ValuesSortCondition

Sort condition that orders rows or columns by cell values, comparing numbers, text, dates, and other data types.

Definition

Constructors

ValuesSortCondition(int, SortOrder)

Initializes a new sort condition that orders by cell values in the specified direction.

Declaration

cs-api-definition
public ValuesSortCondition(int relativeIndex, SortOrder sortOrder)

Parameters

relativeIndex

int

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

sortOrder

SortOrder

The sort order.

Properties

Comparer

Gets the comparer that orders cell values in ascending or descending sequence.

Declaration

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

Property Value

IComparer<SortValue>

The comparer used for sorting.

Overrides SortConditionBase<ICellValue>.Comparer

PropertyDefinition

Gets the cell property definition that identifies the cell value used for sorting.

Declaration

cs-api-definition
protected override IPropertyDefinition<ICellValue> PropertyDefinition { get; }

Property Value

IPropertyDefinition<ICellValue>

The property definition of the property which is used for sorting.

Overrides SortConditionBase<ICellValue>.PropertyDefinition