'Declaration Public Function SortRange( _ ByVal row As System.Integer, _ ByVal column As System.Integer, _ ByVal rowCount As System.Integer, _ ByVal columnCount As System.Integer, _ ByVal byRows As System.Boolean, _ ByVal sortInfo() As SortInfo _ ) As System.Boolean
'Usage Dim instance As Worksheet Dim row As System.Integer Dim column As System.Integer Dim rowCount As System.Integer Dim columnCount As System.Integer Dim byRows As System.Boolean Dim sortInfo() As SortInfo Dim value As System.Boolean value = instance.SortRange(row, column, rowCount, columnCount, byRows, sortInfo)
Parameters
- row
- The index of the starting row of the block of cells to sort.
- column
- The index of the starting column of the block of cells to sort.
- rowCount
- The number of rows in the block of cells.
- columnCount
- The number of columns in the block of cells.
- byRows
- Set to
true
to sort by rows; false to sort by columns. - sortInfo
- The SortInfo object with sort criteria and information about how to perform the sort.
Return Value
true
if the data is successfully sorted; otherwise, false
.