Gets the cell range that would be selected if you extended the current selection to the specified row and column indexes.
Syntax
Parameters
- extendRow
- Row index to which to extend the selection
- extendColumn
- Column index to which to extend the selection
Return Value
CellRange object containing the range of cels
Example
C# | Copy Code |
---|
FarPoint.Win.Spread.Model.DefaultSheetSelectionModel ds = new FarPoint.Win.Spread.Model.DefaultSheetSelectionModel();
FarPoint.Win.Spread.Model.CellRange cr;
fpSpread1.ActiveSheet.Models.Selection = ds;
ds.AddSelection(0, 0, 3, 4);
cr = ds.GetExtendedSelection(5, 7);
fpSpread2.ActiveSheet.AddSelection(cr.Row, cr.Column, cr.RowCount, cr.ColumnCount);
|
Visual Basic | Copy Code |
---|
Dim ds As New FarPoint.Win.Spread.Model.DefaultSheetSelectionModel
Dim cr As FarPoint.Win.Spread.Model.CellRange
FpSpread1.ActiveSheet.Models.Selection = ds
ds.AddSelection(0, 0, 3, 4)
cr = ds.GetExtendedSelection(5, 7)
FpSpread2.ActiveSheet.AddSelection(cr.Row, cr.Column, cr.RowCount, cr.ColumnCount)
|
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