New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
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

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

C#
protected OrderedSortConditionBase(int relativeIndex, SortOrder sortOrder)
Parameters:relativeIndexint

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

sortOrderSortOrder

The sort order.

Methods

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

C#
public override bool Equals(object obj)
Parameters:objobject

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)

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

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: SortConditionBase<T>.GetHashCode()

Properties

Gets whether this condition sorts in ascending or descending order.

C#
public SortOrder SortOrder { get; }
Property Value:

The sort order.