[]
根据指定的选项对由此范围表示的单元格进行排序。
void Sort(SortOrientation orientation = SortOrientation.Columns, bool caseSensitive = false, params IValueSortField[] keys)
| Type | Name | Description |
|---|---|---|
| SortOrientation | orientation | 排序方向。 |
| bool | caseSensitive | 如果设置为 |
| IValueSortField[] | keys | SortFieldBase 数组。 |
根据指定的选项对由此范围表示的单元格进行排序。
void Sort(IRange key, SortOrder order = SortOrder.Ascending, SortOrientation orientation = SortOrientation.Columns, bool caseSensitive = false)
| Type | Name | Description |
|---|---|---|
| IRange | key | 排序列的关键字。 |
| SortOrder | order | 排序顺序,升序或降序。 |
| SortOrientation | orientation | 排序方向。 |
| bool | caseSensitive | 如果设置为 |