FlexGrid for UWP/WinRT
HitTest(RoutedEventArgs) メソッド
使用例 

テストするポイントを示す Windows.Devices.Input.MouseEventArgs
指定された場所にある、グリッドに関する情報を保持する HitTestInfo オブジェクトを取得します。
構文
'宣言
 
Public Overloads Function HitTest( _
   ByVal e As Windows.UI.Xaml.RoutedEventArgs _
) As HitTestInfo
public HitTestInfo HitTest( 
   Windows.UI.Xaml.RoutedEventArgs e
)

パラメータ

e
テストするポイントを示す Windows.Devices.Input.MouseEventArgs

戻り値の型

e パラメータで指定される場所にある、グリッドに関する情報を保持する HitTestInfo オブジェクト。
使用例
以下のコードは MouseMove イベントを処理し、マウスの下にあるセルの座標とコンテンツを表示します。
void _flex_MouseMove(object sender, MouseEventArgs e)
{
var ht = _flex.HitTest(e);
_tb.Text = string.Format(
"HitTest:: cell type {0}, row {1}, column {2}, content '{3}'",
ht.CellType, // Cell、ColumnHeader、RowHeader など
ht.Row,
ht.Column,
ht.CellRange.IsValid ? _flex[ht.Row, ht.Column] : "n/a");
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

関連項目

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

Send Feedback