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

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

パラメータ

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.IsAnyCellInColumnSelected(0);
string msg = "There is a cell in the column selected 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.IsAnyCellInColumnSelected(0)
Dim msg As String = "There is a cell in the column selected is " + b.ToString()
Response.Write("<script language='javascript'>alert('" & msg & "')</script>")
参照

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

 

 


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