Spread Windows Forms 7.0 Product Documentation
GetExtendedSelection Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > DefaultSheetSelectionModel Class : GetExtendedSelection Method


extendRow
Row index to which to extend the selection
extendColumn
Column index to which to extend the selection

Glossary Item Box

Gets the cell range that would be selected if you extended the current selection to the specified row and column indexes.

Syntax

Visual Basic (Declaration) 
Public Function GetExtendedSelection( _
   ByVal extendRow As Integer, _
   ByVal extendColumn As Integer _
) As CellRange
Visual Basic (Usage)Copy Code
Dim instance As DefaultSheetSelectionModel
Dim extendRow As Integer
Dim extendColumn As Integer
Dim value As CellRange
 
value = instance.GetExtendedSelection(extendRow, extendColumn)
C# 
public CellRange GetExtendedSelection( 
   int extendRow,
   int extendColumn
)

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 BasicCopy 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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.