クリックまたはドラッグしてリサイズ
C1FlexGridHitTest メソッド (RoutedEventArgs)
指定された場所にある、グリッドに関する情報を保持する HitTestInfo オブジェクトを取得します。

名前空間: C1.WPF.FlexGrid
アセンブリ: C1.WPF.FlexGrid.4 (C1.WPF.FlexGrid.4.dll 内) バージョン: 4.0.20161.507 (4.0.20161.507)
構文
public HitTestInfo HitTest(
	RoutedEventArgs e
)

パラメータ

e
型: System.WindowsRoutedEventArgs
テストするポイントを示す MouseEventArgs

戻り値

型: HitTestInfo
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");
}
参照