MESCIUS SPREAD for Windows Forms 17.0J
RangeGroupHitTestInformation コンストラクタ

RangeGroupHitTestInformation クラスの新しいインスタンスを初期化します。
構文
'Declaration
 
Public Function New()
public RangeGroupHitTestInformation()
次のサンプルコードは、ヒットテストの列インデックスを返します。
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;
bool b = rght.InColumnPanel;
int i = rght.ColumnIndex;
MessageBox.Show(b.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 b As Boolean = rght.InColumnPanel
Dim i As Integer = rght.ColumnIndex
MsgBox(b.ToString() & " - " & i.ToString())
End Sub
参照

RangeGroupHitTestInformation クラス
RangeGroupHitTestInformation メンバ

 

 


© MESCIUS inc. All rights reserved.