PowerTools SPREAD for Windows Forms 8.0J
Equals(Int32,Int32,Int32,Int32) メソッド


範囲の先頭のセルの行インデックス
範囲の先頭のセルの列インデックス
範囲の行数
範囲の列数
セル範囲が指定したセル範囲と等しいかどうかを判定します。
構文
'Declaration
 
Public Overloads Function Equals( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal rowCount As Integer, _
   ByVal columnCount As Integer _
) As Boolean
'使用法
 
Dim instance As CellRange
Dim row As Integer
Dim column As Integer
Dim rowCount As Integer
Dim columnCount As Integer
Dim value As Boolean
 
value = instance.Equals(row, column, rowCount, columnCount)
public bool Equals( 
   int row,
   int column,
   int rowCount,
   int columnCount
)

パラメータ

row
範囲の先頭のセルの行インデックス
column
範囲の先頭のセルの列インデックス
rowCount
範囲の行数
columnCount
範囲の列数

戻り値の型

Boolean:オブジェクトが等しい場合は True、それ以外の場合は False
次のサンプルコードは、セル範囲が指定した行および列と等しいかどうかをチェックします。
FarPoint.Win.Spread.Model.CellRange cr = new FarPoint.Win.Spread.Model.CellRange(0, 0, 3, 3);
bool b;
b = cr.Equals(0, 0, 3, 3);
listBox1.Items.Add(b.ToString());
Dim cr As New FarPoint.Win.Spread.Model.CellRange(0, 0, 3, 3)
Dim b As Boolean
b = cr.Equals(0, 0, 3, 3)
ListBox1.Items.Add(b.ToString())
参照

CellRange クラス
CellRange メンバ
オーバーロード一覧

 

 


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