Struct SortDescription
Defines a property and direction to sort a list by.
Inherited Members
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: System.ComponentModel
Assembly: OpenSilver.dll
Syntax
public struct SortDescription
Constructors
| Improve this Doc View SourceSortDescription(String, ListSortDirection)
Create a sort description.
Declaration
public SortDescription(string propertyName, ListSortDirection direction)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | Property to sort by |
System.ComponentModel.ListSortDirection | direction | Specifies the direction of sort operation |
Exceptions
Type | Condition |
---|---|
System.ComponentModel.InvalidEnumArgumentException | direction is not a valid value for ListSortDirection |
Properties
| Improve this Doc View SourceDirection
Sort direction.
Declaration
public ListSortDirection Direction { get; set; }
Property Value
Type | Description |
---|---|
System.ComponentModel.ListSortDirection |
IsSealed
Returns true if the SortDescription is in use (sealed).
Declaration
public readonly bool IsSealed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
PropertyName
Property name to sort by.
Declaration
public string PropertyName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceEquals(Object)
Override of Object.Equals
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.ValueType.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Override of Object.GetHashCode
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.ValueType.GetHashCode()
Operators
| Improve this Doc View SourceEquality(SortDescription, SortDescription)
Equality operator for SortDescription.
Declaration
public static bool operator ==(SortDescription sd1, SortDescription sd2)
Parameters
Type | Name | Description |
---|---|---|
SortDescription | sd1 | |
SortDescription | sd2 |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(SortDescription, SortDescription)
Inequality operator for SortDescription.
Declaration
public static bool operator !=(SortDescription sd1, SortDescription sd2)
Parameters
Type | Name | Description |
---|---|---|
SortDescription | sd1 | |
SortDescription | sd2 |
Returns
Type | Description |
---|---|
System.Boolean |