FlexPivot for WinForms
HitTest(Int32,Int32) メソッド
使用例 

C1.Win.C1FlexGrid.4.5.2 アセンブリ > C1.Win.C1FlexGrid 名前空間 > C1FlexGridBase クラス > HitTest メソッド : HitTest(Int32,Int32) メソッド
The horizontal position of the client coordinate.
The vertical position of the client coordinate.
Returns information about the control at a specified point on the control surface.
シンタックス
'宣言
 
Public Overloads Function HitTest( _
   ByVal x As System.Integer, _
   ByVal y As System.Integer _
) As HitTestInfo
public HitTestInfo HitTest( 
   System.int x,
   System.int y
)

パラメータ

x
The horizontal position of the client coordinate.
y
The vertical position of the client coordinate.

戻り値の型

A HitTestInfo object that contains information about the point.
解説
This method is especially useful when handling the BeforeMouseDown event. It allows you to determine whether the mouse is over a specific cell, grid buttons, resizing elements, etc.
使用例
The code below shows hit test information whenever the user clicks the mouse:
void _flex_BeforeMouseDown(object sender, BeforeMouseDownEventArgs e)
{
  HitTestInfo hti = _flex.HitTest(e.X, e.Y);
  Console.WriteLine("at {0},{1}: row {2} col {3} type {4}",
                     hti.X, hti.Y, hti.Row, hti.Column, hti.Type);
}
参照

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