[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IRange.Sort

Sort Method

Sort(SortOrientation, bool, params IValueSortField[])

根据指定的选项对由此范围表示的单元格进行排序。

Declaration
void Sort(SortOrientation orientation = SortOrientation.Columns, bool caseSensitive = false, params IValueSortField[] keys)
Parameters
Type Name Description
SortOrientation orientation

排序方向。

bool caseSensitive

如果设置为true 则区分大小写。

IValueSortField[] keys

SortFieldBase 数组。

Sort(IRange, SortOrder, SortOrientation, bool)

根据指定的选项对由此范围表示的单元格进行排序。

Declaration
void Sort(IRange key, SortOrder order = SortOrder.Ascending, SortOrientation orientation = SortOrientation.Columns, bool caseSensitive = false)
Parameters
Type Name Description
IRange key

排序列的关键字。

SortOrder order

排序顺序,升序或降序。

SortOrientation orientation

排序方向。

bool caseSensitive

如果设置为true 则区分大小写。