AddSelection(Int32,Int32,Int32,Int32,Boolean) Method
In This Topic
Adds a cell or cells to the selection.
Syntax
'Declaration
Public Overloads Sub AddSelection( _
ByVal As Integer, _
ByVal column As Integer, _
ByVal As Integer, _
ByVal columnCount As Integer, _
ByVal As Boolean _
)
'Usage
Dim instance As Worksheet
Dim row As Integer
Dim column As Integer
Dim rowCount As Integer
Dim columnCount As Integer
Dim moveAnchorCell As Boolean
instance.AddSelection(row, column, rowCount, columnCount, moveAnchorCell)
public void AddSelection(
int ,
int column,
int ,
int columnCount,
bool
)
Parameters
- row
- The row index of the first cell to add.
- column
- The column index of the first cell to add.
- rowCount
- The number of rows to add.
- columnCount
- The number of columns to add.
- moveAnchorCell
- Whether to reset the anchor cell to the top-left corner of the selection area.
See Also