バージョン

PointInElement(Point) メソッド

ポイントが要素上にあり、なおかつ重なり合っている兄弟要素上にはないかどうかを確認します。
シンタックス
'宣言
 
Public Overloads Function PointInElement( _
   ByVal point As Point _
) As Boolean
public bool PointInElement( 
   Point point
)

パラメータ

point
クライアント座標

戻り値の型

ポイントが要素の上にある場合、True を返します。
使用例
Private Function IsPointOverUltraGridActiveRow(ByVal pt As Point) As Boolean

    If Not Me.ultraGrid1.DisplayLayout.ActiveRow Is Nothing Then

        If (Me.ultraGrid1.DisplayLayout.ActiveRow.GetUIElement().PointInElement(pt)) Then
            Return True
        End If
    End If

    Return False

End Function
using System.Diagnostics;
using System.Windows.Forms;		

private void ultraGrid1_MouseMove(object sender, MouseEventArgs e)
{

	if(IsPointOverUltraGridActiveRow(new Point(e.X,e.Y)))
	{
		Debug.WriteLine("Over Active Row");
	}
	else
	{
		Debug.WriteLine("Not Over Active Row");
	}

}

private bool IsPointOverUltraGridActiveRow(Point pt)
{

	if(null != this.ultraGrid1.DisplayLayout.ActiveRow)
	{

		if(this.ultraGrid1.DisplayLayout.ActiveRow.GetUIElement().PointInElement(pt))
			return true;

	}

	return false;

}
参照