[]
Creates a value sort field for the specified key range and sort order.
public ValueSortField(IRange key, SortOrder order = SortOrder.Ascending)
Public Sub New(key As IRange, Optional order As SortOrder = SortOrder.Ascending)
| Type | Name | Description |
|---|---|---|
| IRange | key | The range that provides the values used as the sort key. Must not be |
| SortOrder | order | The sort order to apply to the key range. Defaults to Ascending when omitted. |
Creates a value sort field that uses a custom sort list.
Use this constructor to sort by a user-defined value sequence instead of the
normal ascending or descending order. The custom list string can contain values
such as 3,2,5,1 or quoted text entries such as
"\"High\", \"Medium\", \"Low\"".
public ValueSortField(IRange key, string customValues)
Public Sub New(key As IRange, customValues As String)
| Type | Name | Description |
|---|---|---|
| IRange | key | The range that provides the sort key. |
| string | customValues | The custom list string that defines the sort order. |