In This Article

SortDescription<T> Class

Defines a sort that can be applied to a CollectionView<T>.

public class SortDescription<T>
Type Parameters:
T -

The type.

Inheritance:
object object

Remarks

This experimental class is subject to breaking changes and should only be used in conjunction with Actipro controls in the manner directed.

Constructors

SortDescription(Func<T, object?>, ListSortDirection)

Initializes an instance of the class.

public SortDescription(Func<T, object?> keySelector, ListSortDirection direction = ListSortDirection.Ascending)
Parameter Type Description
keySelector Func<T, object>

The selector which will return the key to be used for sorting.

direction ListSortDirection

The sort direction.

Properties

SortDirection

The sort direction.

public ListSortDirection SortDirection { get; }

Property Value

ListSortDirection

SortKeySelector

The selector which will return the key to be used for sorting.

public Func<T, object?> SortKeySelector { get; }

Property Value

Func<T, object>

Inherited Members

Extension Methods