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

セルの行インデックス
セルの列インデックス
指定したセルが選択範囲に含まれているかどうかを判定します。
構文
'Declaration
 
Function IsSelected( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As Boolean
bool IsSelected( 
   int row,
   int column
)

パラメータ

row
セルの行インデックス
column
セルの列インデックス

戻り値の型

セルが選択範囲に含まれている場合はTrue、それ以外の場合はFalse
FarPoint.Web.Spread.Model.ISheetSelectionModel iss;
iss = (FarPoint.Web.Spread.Model.ISheetSelectionModel)FpSpread1.ActiveSheetView.SelectionModel;
iss.SetSelection(0, 0, 2, 2);
iss.AddSelection(3, 0, 1, 2);
bool b = iss.IsSelected(0, 2);
string msg = "The cell is in a selection is " + b.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)
iss.AddSelection(3, 0, 3, 2)
Dim b As Boolean = iss.IsSelected(0, 2)
Dim msg As String = "The cell is in a selection is " + b.ToString()
Response.Write("<script language='javascript'>alert('" & msg & "')</script>")
参照

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

 

 


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