|
Cet article a fait l'objet d'une traduction automatique. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
HorizontalAlignment, énumération
Espace de noms : System.Windows.Forms
Assembly : System.Windows.Forms (dans System.Windows.Forms.dll)
private void Form1_Load(object sender, System.EventArgs e) { // Add a text string to the TextBox. textBox1.Text = "Hello World!"; // Set the size of the TextBox. textBox1.AutoSize = false; textBox1.Size = new Size(Width, Height/3); // Align the text in the center of the control element. textBox1.TextAlign = HorizontalAlignment.Center; }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (rôle principal du serveur non pris en charge), Windows Server 2008 R2 (rôle principal du serveur pris en charge avec SP1 ou version ultérieure ; Itanium non pris en charge)
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.