Control.GetChildAtPoint Méthode
Définition
Récupère le contrôle enfant à un emplacement spécifié.Retrieves the child control at a specified location.
Surcharges
GetChildAtPoint(Point) |
Récupère le contrôle enfant qui est situé aux coordonnées spécifiées.Retrieves the child control that is located at the specified coordinates. |
GetChildAtPoint(Point, GetChildAtPointSkip) |
Récupère le contrôle enfant localisé aux coordonnées spécifiées, en spécifiant s'il faut ignorer ceux d'un certain type.Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type. |
GetChildAtPoint(Point)
Récupère le contrôle enfant qui est situé aux coordonnées spécifiées.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
Paramètres
- pt
- Point
Point qui contient les coordonnées où vous souhaitez rechercher un contrôle.A Point that contains the coordinates where you want to look for a control. Les coordonnées sont exprimées par rapport au coin supérieur gauche de la zone cliente du contrôle.Coordinates are expressed relative to the upper-left corner of the control's client area.
Retours
Control qui représente le contrôle qui se trouve au point spécifié.A Control that represents the control that is located at the specified point.
Remarques
S’il n’y a pas de contrôle enfant au point spécifié, la méthode GetChildAtPoint retourne null
.If there is no child control at the specified point, the GetChildAtPoint method returns null
.
Sécurité
UIPermission
pour que toutes les fenêtres appellent cette méthode si le contrôle retourné n’est pas un enfant du contrôle.for all windows to call this method if the control returned is not a child of the control. Énumération associée : valeur AllWindows
de UIPermissionWindow.Associated enumeration: AllWindows
value of UIPermissionWindow.
Voir aussi
GetChildAtPoint(Point, GetChildAtPointSkip)
Récupère le contrôle enfant localisé aux coordonnées spécifiées, en spécifiant s'il faut ignorer ceux d'un certain type.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
Paramètres
- pt
- Point
Point qui contient les coordonnées où vous souhaitez rechercher un contrôle.A Point that contains the coordinates where you want to look for a control. Les coordonnées sont exprimées par rapport au coin supérieur gauche de la zone cliente du contrôle.Coordinates are expressed relative to the upper-left corner of the control's client area.
- skipValue
- GetChildAtPointSkip
Une des valeurs de GetChildAtPointSkip, déterminant s'il faut ignorer les contrôles enfants d'un certain type.One of the values of GetChildAtPointSkip, determining whether to ignore child controls of a certain type.