Spread Windows Forms 12.0 Product Documentation
AddSelection Method (SheetView)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : AddSelection Method
Starting row index of selection
Starting column index of selection
Number of rows in selection
Number of columns in selection
Adds a selection on this sheet.
Syntax
'Declaration
 
Public Sub AddSelection( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal rowCount As Integer, _
   ByVal columnCount As Integer _
) 
'Usage
 
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim rowCount As Integer
Dim columnCount As Integer
 
instance.AddSelection(row, column, rowCount, columnCount)
public void AddSelection( 
   int row,
   int column,
   int rowCount,
   int columnCount
)

Parameters

row
Starting row index of selection
column
Starting column index of selection
rowCount
Number of rows in selection
columnCount
Number of columns in selection
Example
This example selects cells A1 through C3 in the active sheet.
FarPoint.Win.Spread.SheetView sv = new FarPoint.Win.Spread.SheetView();
sv.AddSelection(0, 0, 2, 2);
fpSpread1.Sheets.Add(sv);
fpSpread1.ActiveSheet = sv;
Dim sv As New FarPoint.Win.Spread.SheetView()
sv.AddSelection(0, 0, 2, 2)
FpSpread1.Sheets.Add(sv)
FpSpread1.ActiveSheet = sv
See Also

Reference

SheetView Class
SheetView Members
GetSelection Method
RemoveSelection Method

User-Task Documentation

Working with Selections