Screen.FromControl(Control) Méthode

Définition

Récupère Screen pour l'affichage qui contient la plus grande partie du contrôle spécifié.

public:
 static System::Windows::Forms::Screen ^ FromControl(System::Windows::Forms::Control ^ control);
public static System.Windows.Forms.Screen FromControl (System.Windows.Forms.Control control);
static member FromControl : System.Windows.Forms.Control -> System.Windows.Forms.Screen
Public Shared Function FromControl (control As Control) As Screen

Paramètres

control
Control

Control pour lequel un Screen doit être récupéré.

Retours

Screen

Screen pour l'affichage qui contient la plus grande zone du contrôle spécifié. Dans plusieurs environnements d'affichage où aucun affichage ne contient le contrôle, l'affichage le plus proche du contrôle spécifié est retourné.

S’applique à