Sorts the data in this range according to the specified options.
Namespace: MindFusion.Spreadsheet.Wpf
Assembly: MindFusion.Spreadsheet.Wpf
C# Copy Code |
---|
public bool Sort ( |
Visual Basic Copy Code |
---|
Public Function Sort( _ |
The sort settings, such as sort keys and direction.
true if the sort was successful; otherwise, false.
The sorting will fail if there are no keys specified or if all keys are outside of the current range.
The following example illustrates how to sort the data in range A1:D10 in an existing worksheet by the first column.
C# Copy Code |
---|
SortOptions options = new SortOptions(); |
Visual Basic Copy Code |
---|
Dim options As New SortOptions() |