SortRange

SortRange constructor

初始化SortRange通过指定工作表范围和排序方向来分类。

public SortRange(Worksheet worksheet, int startRow, int startColumn, int rows, int columns, 
    SortOrientation orientation, bool isCaseSensitive)
范围类型描述
worksheetWorksheet包含范围的工作表。
startRowInt32范围的起始行。
startColumnInt32范围的起始列。
rowsInt32行数。
columnsInt32列数
orientationSortOrientation排序方向:从上到下或从左到右。
isCaseSensitiveBoolean如果数据是字符串,则确定排序数据是否区分大小写

也可以看看