Spread WPF Documentation
AddSelection Method (SheetView)
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > SheetView Class : AddSelection Method
The row index of the first cell to add.
The column index of the first cell to add.
The number of rows to add.
The number of columns to add.
Adds a cell or cells to the selection.
Syntax
'Declaration
 
Public Sub AddSelection( _
   ByVal row As System.Integer, _
   ByVal column As System.Integer, _
   ByVal rowCount As System.Integer, _
   ByVal columnCount As System.Integer _
) 
'Usage
 
Dim instance As SheetView
Dim row As System.Integer
Dim column As System.Integer
Dim rowCount As System.Integer
Dim columnCount As System.Integer
 
instance.AddSelection(row, column, rowCount, columnCount)
public void AddSelection( 
   System.int row,
   System.int column,
   System.int rowCount,
   System.int columnCount
)

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.
Example
This example uses the AddSelection method.
GcSpreadSheet1.View.AddSelection(0, 0, 3, 3)
GcSpreadSheet1.View.AddSelection(0, 0, 3, 3)
See Also

Reference

SheetView Class
SheetView Members