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

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

パラメータ

row
チェックする行のインデックス

戻り値の型

行の任意のセルが選択されている場合は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.IsAnyCellInRowSelected(0);
string msg = "There is a cell in the row 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.IsAnyCellInRowSelected(0)
Dim msg As String = "There is a cell in the row selected is " + b.ToString()
Response.Write("<script language='javascript'>alert('" & msg & "')</script>")
参照

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

 

 


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