public class SortKey
extends java.lang.Object
Instances of this class can be added to the Keys
collection of the SortOptions class.
| Constructor and Description |
|---|
SortKey(int index)
Initializes a new instance of the
SortKey class. |
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Gets the zero-based index of the column or row to sort by.
|
SortOrder |
getOrder()
Gets the sort order, either ascending or descending.
|
boolean |
getTreatTextAsNumber()
Gets a value identifying whether to compare text values as numbers when possible.
|
SortKey |
setIndex(int value)
Sets the zero-based index of the column or row to sort by.
|
SortKey |
setOrder(SortOrder value)
Sets the sort order, either ascending or descending.
|
SortKey |
setTreatTextAsNumber(boolean value)
Sets a value identifying whether to compare text values as numbers when possible.
|
public SortKey(int index)
SortKey class.index - The zero-based index of the column or row to sort by.public int getIndex()
This property identifies either column or row index, depending on the value of
the Direction property of the parent SortOptions.
public SortKey setIndex(int value)
This property identifies either column or row index, depending on the value of
the Direction property of the parent SortOptions.
public SortOrder getOrder()
public SortKey setOrder(SortOrder value)
public boolean getTreatTextAsNumber()
public SortKey setTreatTextAsNumber(boolean value)