Screen.FromControl(Control) Méthode

Définition

Récupère une Screen valeur 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

Pour Control laquelle récupérer un Screen.

Retours

Pour Screen l’affichage qui contient la plus grande région 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 à