Control.GetChildAtPoint メソッド
定義
指定した位置の子コントロールを取得します。Retrieves the child control at a specified location.
オーバーロード
GetChildAtPoint(Point) |
指定した座標にある子コントロールを取得します。Retrieves the child control that is located at the specified coordinates. |
GetChildAtPoint(Point, GetChildAtPointSkip) |
特定の種類の子コントロールを無視するかどうかを指定して、指定した座標にある子コントロールを取得します。Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type. |
GetChildAtPoint(Point)
指定した座標にある子コントロールを取得します。Retrieves the child control that is located at the specified coordinates.
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。A Point that contains the coordinates where you want to look for a control. 座標は、コントロールのクライアント領域の左上隅に対する相対座標として表されます。Coordinates are expressed relative to the upper-left corner of the control's client area.
戻り値
指定したポイントにあるコントロールを表す Control。A Control that represents the control that is located at the specified point.
注釈
指定したポイントに子コントロールが存在しない場合、 GetChildAtPoint メソッドはを返し null
ます。If there is no child control at the specified point, the GetChildAtPoint method returns null
.
こちらもご覧ください
適用対象
GetChildAtPoint(Point, GetChildAtPointSkip)
特定の種類の子コントロールを無視するかどうかを指定して、指定した座標にある子コントロールを取得します。Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type.
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。A Point that contains the coordinates where you want to look for a control. 座標は、コントロールのクライアント領域の左上隅に対する相対座標として表されます。Coordinates are expressed relative to the upper-left corner of the control's client area.
- skipValue
- GetChildAtPointSkip
特定の種類の子コントロールを無視するかどうかを決定する GetChildAtPointSkip の値の 1 つ。One of the values of GetChildAtPointSkip, determining whether to ignore child controls of a certain type.
戻り値
指定した座標にある子 Control。The child Control at the specified coordinates.