SelectRange

Worksheet.SelectRange method

选择一个范围。

public void SelectRange(int startRow, int startColumn, int totalRows, int totalColumns, 
    bool removeOthers)
范围类型描述
startRowInt32起始行.
startColumnInt32起始列
totalRowsInt32行数。
totalColumnsInt32列数
removeOthersBooleanTrue 表示删除其他选定范围并仅选择此范围。

也可以看看