PowerTools SPREAD for ASP.NET 8.0J
SetSelection メソッド (ISheetSelectionModel)

行インデックス
列インデックス
選択範囲内の行数
選択範囲内の列数
指定したセルを選択します。
構文
'Declaration
 
Sub SetSelection( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal rowCount As Integer, _
   ByVal columnCount As Integer _
) 
void SetSelection( 
   int row,
   int column,
   int rowCount,
   int columnCount
)

パラメータ

row
行インデックス
column
列インデックス
rowCount
選択範囲内の行数
columnCount
選択範囲内の列数
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.