Class
OrderedSortConditionBase<T>

Abstract base for sort conditions that apply ascending or descending order to cell properties.

Definition

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

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Type Parameters:

T

The type of the T.

Syntax:

cs-api-definition
public abstract class OrderedSortConditionBase<T> : SortConditionBase<T>, ISortCondition

Inheritance: objectSortConditionBase<T>OrderedSortConditionBase<T>

Derived Classes: CustomValuesSortConditionFillColorSortConditionForeColorSortConditionValuesSortCondition

Implements: ISortCondition

Inherited Members SortConditionBase<T>.GetValue(Cells, int, int)SortConditionBase<T>.RelativeIndexSortConditionBase<T>.PropertyDefinitionSortConditionBase<T>.Comparer

Constructors

OrderedSortConditionBase(int, SortOrder)

Initializes a new sort condition with a specified relative index and sort order.

Declaration

cs-api-definition
protected OrderedSortConditionBase(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

SortOrder

Gets whether this condition sorts in ascending or descending order.

Declaration

cs-api-definition
public SortOrder SortOrder { get; }

Property Value

SortOrder

The sort order.

Methods

Equals(object)

Determines whether the specified sort condition has the same sort order and base properties.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Overrides SortConditionBase<T>.Equals(object)

GetHashCode()

Computes a hash code combining the sort order and base sort condition properties.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides SortConditionBase<T>.GetHashCode()