[]
Sorts all the columns on the sheet by the specified row.
public bool SortColumns(int keyRow, bool ascending)
Public Function SortColumns(keyRow As Integer, ascending As Boolean) As Boolean
Type | Name | Description |
---|---|---|
int | keyRow | Index of the row to use as a key to sorting |
bool | ascending | Whether to sort in ascending order |
Type | Description |
---|---|
bool |
Sorts all the columns on the sheet by the specified row using the specified comparison.
public bool SortColumns(int keyRow, bool ascending, IComparer comparer)
Public Function SortColumns(keyRow As Integer, ascending As Boolean, comparer As IComparer) As Boolean
Type | Name | Description |
---|---|---|
int | keyRow | Index of the row to use as a key to sorting |
bool | ascending | Whether to sort in ascending order |
IComparer | comparer | IComparer object used to compare the values |
Type | Description |
---|---|
bool |
Sorts a specified range of columns on the sheet by the specified sort information.
public bool SortColumns(int column, int columnCount, SortInfo[] sortInfo)
Public Function SortColumns(column As Integer, columnCount As Integer, sortInfo As SortInfo()) As Boolean
Type | Name | Description |
---|---|---|
int | column | Index of first column to start sorting |
int | columnCount | Number of columns in range to sort |
SortInfo[] | sortInfo | Array of SortInfo objects with the row indexes and sort order |
Type | Description |
---|---|
bool |