Select有4个参数,用这4个参数选择一个范围。纵向多Cell就是startcol和endcol一样,startrow和endrow分别是第几行到底几行。给参数就可以了。
Select(Int32, Int32, Int32, Int32)
Selects the part of the table defined through two table cells.
[C#]
public void Select(int startRow, int startColumn, int stopRow, int stopColumn);
[Visual Basic]
Public Sub Select(ByVal startRow As Integer, ByVal startColumn As Integer, ByVal stopRow As Integer, ByVal stopColumn As Integer)
Member Description
startRow Specifies the row number where the selection begins.
startColumn Specifies the column number where the selection begins.
stopRow Specifies the row number where the selection ends.
stopColumn Specifies the column number where the selection ends.
|