ClassSortDescription
Class
Definition
Namespace:Controls.Data.Collections
Assembly:Telerik.WinUI.Controls.dll
Syntax:
cs-api-definition
public class SortDescription
Inheritance: objectSortDescription
Constructors
SortDescription(SortDirection, IComparer)
Initializes a new instance of the SortDescription class that describes a sort on the object itself
Declaration
cs-api-definition
public SortDescription(SortDirection direction, IComparer comparer = null)
Parameters
direction
Direction of sort
comparer
Comparer to use. If null, will use default comparer
SortDescription(string, SortDirection, IComparer)
Initializes a new instance of the SortDescription class.
Declaration
cs-api-definition
public SortDescription(string propertyName, SortDirection direction, IComparer comparer = null)
Parameters
propertyName
Name of property to sort on
direction
Direction of sort
comparer
Comparer to use. If null, will use default comparer
Properties
Comparer
Gets the comparer
Direction
Gets the direction of sort
PropertyName
Gets the name of property to sort on