PowerTools SPREAD for ASP.NET 8.0J
Item プロパティ (ISheetSelectionModel)

選択のインデックス
モデル内の選択を取得します。
構文
'Declaration
 
ReadOnly Default Property Item( _
   ByVal index As Integer _
) As CellRange
CellRange this[ 
   int index
]; {get;}

パラメータ

index
選択のインデックス

プロパティ値

選択したセルの範囲を含むCellRangeオブジェクト
解説
選択は、選択したセル範囲です。
FarPoint.Web.Spread.Model.ISheetSelectionModel iss;
iss = (FarPoint.Web.Spread.Model.ISheetSelectionModel)FpSpread1.ActiveSheetView.SelectionModel;
iss.SetSelection(0, 0, 2, 2);
FarPoint.Web.Spread.Model.CellRange cr = iss[0];
string msg = "The first column in the selection is " + cr.Column.ToString();
Response.Write("<script language='javascript'>alert('" + msg + "')</script>");
Dim iss As FarPoint.Web.Spread.Model.ISheetSelectionModel
iss = FpSpread1.ActiveSheetView.SelectionModel
iss.SetSelection(0, 0, 2, 2)
Dim cr As FarPoint.Web.Spread.Model.CellRange = iss.Item(0)
Dim msg As String = "The first column in the selection is " + cr.Column.ToString()
Response.Write("<script language='javascript'>alert('" & msg & "')</script>")
参照

ISheetSelectionModel インタフェース
ISheetSelectionModel メンバ

 

 


© 2003-2015, GrapeCity inc. All rights reserved.