Control.GetChildAtPoint メソッド

定義

指定した位置の子コントロールを取得します。

オーバーロード

GetChildAtPoint(Point)

指定した座標にある子コントロールを取得します。

GetChildAtPoint(Point, GetChildAtPointSkip)

特定の種類の子コントロールを無視するかどうかを指定して、指定した座標にある子コントロールを取得します。

GetChildAtPoint(Point)

指定した座標にある子コントロールを取得します。

public:
 System::Windows::Forms::Control ^ GetChildAtPoint(System::Drawing::Point pt);
public System.Windows.Forms.Control GetChildAtPoint (System.Drawing.Point pt);
member this.GetChildAtPoint : System.Drawing.Point -> System.Windows.Forms.Control
Public Function GetChildAtPoint (pt As Point) As Control

パラメーター

pt
Point

コントロールを検索する座標を格納している Point。 座標は、コントロールのクライアント領域の左上隅に対する相対座標として表されます。

戻り値

Control

指定したポイントにあるコントロールを表す Control

注釈

指定したポイントに子コントロールがない場合、 GetChildAtPoint メソッド nullは .

こちらもご覧ください

適用対象

GetChildAtPoint(Point, GetChildAtPointSkip)

特定の種類の子コントロールを無視するかどうかを指定して、指定した座標にある子コントロールを取得します。

public:
 System::Windows::Forms::Control ^ GetChildAtPoint(System::Drawing::Point pt, System::Windows::Forms::GetChildAtPointSkip skipValue);
public System.Windows.Forms.Control GetChildAtPoint (System.Drawing.Point pt, System.Windows.Forms.GetChildAtPointSkip skipValue);
member this.GetChildAtPoint : System.Drawing.Point * System.Windows.Forms.GetChildAtPointSkip -> System.Windows.Forms.Control
Public Function GetChildAtPoint (pt As Point, skipValue As GetChildAtPointSkip) As Control

パラメーター

pt
Point

コントロールを検索する座標を格納している Point。 座標は、コントロールのクライアント領域の左上隅に対する相対座標として表されます。

skipValue
GetChildAtPointSkip

特定の種類の子コントロールを無視するかどうかを決定する GetChildAtPointSkip の値の 1 つ。

戻り値

Control

指定した座標にある子 Control

適用対象