GrapeCity SPREAD for Windows Forms 11.0J
RowLevel プロパティ


位置が指すアウトライン(範囲グループ)内の行レベルを取得します。
構文
'Declaration
 
Public ReadOnly Property RowLevel As Integer
'使用法
 
Dim instance As RangeGroupHitTestInformation
Dim value As Integer
 
value = instance.RowLevel
public int RowLevel {get;}
次のサンプルコードは、ヒットテストの行インデックスを返します。
private void fpSpread1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) 
{
FarPoint.Win.Spread.RangeGroupHitTestInformation rght;
FarPoint.Win.Spread.HitTestInformation ht;
ht = fpSpread1.HitTest(e.X, e.Y);
rght = ht.RangeGroupInfo;
int x = rght.RowLevel;
int i = rght.RowIndex;
MessageBox.Show(x.ToString() + " - " + i.ToString());
}
Private Sub FpSpread1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles FpSpread1.MouseDown
Dim rght As FarPoint.Win.Spread.RangeGroupHitTestInformation
Dim ht As FarPoint.Win.Spread.HitTestInformation
ht = FpSpread1.HitTest(e.X, e.Y)
rght = ht.RangeGroupInfo
Dim x As Integer = rght.RowLevel
Dim i As Integer = rght.RowIndex
MsgBox(b.ToString() & " - " & i.ToString())
End Sub
参照

RangeGroupHitTestInformation クラス
RangeGroupHitTestInformation メンバ

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.