Adds a selection on this sheet.
Syntax
Visual Basic (Usage) | Copy Code |
---|
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) |
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.
C# | Copy Code |
---|
FarPoint.Win.Spread.SheetView sv = new FarPoint.Win.Spread.SheetView();
sv.AddSelection(0, 0, 2, 2);
fpSpread1.Sheets.Add(sv);
fpSpread1.ActiveSheet = sv; |
Visual Basic | Copy Code |
---|
Dim sv As New FarPoint.Win.Spread.SheetView()
sv.AddSelection(0, 0, 2, 2)
FpSpread1.Sheets.Add(sv)
FpSpread1.ActiveSheet = sv |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also