バージョン

GetOwnerFromPoint(Int32,Int32) メソッド

そのポイントに位置する要素に適用される Owner オブジェクトを返します。または Owner オブジェクトが適用されない場合は null を返します。
シンタックス
'宣言
 
Public Overloads Function GetOwnerFromPoint( _
   ByVal x As Integer, _
   ByVal y As Integer _
) As Owner
public Owner GetOwnerFromPoint( 
   int x,
   int y
)

パラメータ

x
テストするポイントのx座標は、コントロールのクライアント座標で表されます。
y
テストするポイントのy座標は、コントロールのクライアント座標で表されます。

戻り値の型

Owner オブジェクト、または Owner オブジェクトが適用されない場合は null。
解説

注: コントロールの GroupingStyle プロパティが 「Merged」 に設定されている場合、このメソッドは適用されず、null (VB では Nothing) を返します。

使用例
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule

    Private Sub UltraDayView1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles UltraDayView1.MouseDown
        Dim ownerAtPoint As Owner = Me.UltraDayView1.GetOwnerFromPoint(New Point(e.X, e.Y))
        If Not ownerAtPoint Is Nothing Then
            MessageBox.Show("The owner at the cursor position is " + ownerAtPoint.Name)
        Else
            MessageBox.Show("The cursor is not positioned over an owner.")
        End If
    End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using System.Diagnostics;

		private void ultraDayView1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
		{
			Owner ownerAtPoint = this.ultraDayView1.GetOwnerFromPoint( new Point(e.X, e.Y) );
			if ( ownerAtPoint != null )
				MessageBox.Show( "The owner at the cursor position is " + ownerAtPoint.Name );
			else
				MessageBox.Show( "The cursor is not positioned over an owner." );
		}
参照