FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread.Model 名前空間 > DefaultSheetSelectionModel クラス : GetExtendedSelection メソッド |
'Declaration Public Function GetExtendedSelection( _ ByVal extendRow As Integer, _ ByVal extendColumn As Integer _ ) As CellRange
'使用法 Dim instance As DefaultSheetSelectionModel Dim extendRow As Integer Dim extendColumn As Integer Dim value As CellRange value = instance.GetExtendedSelection(extendRow, extendColumn)
public CellRange GetExtendedSelection( int extendRow, int extendColumn )
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);
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)