Leggere in inglese

Condividi tramite


TabAppearance Enumerazione

Definizione

Specifica l'aspetto delle schede in un controllo struttura a schede.

C#
public enum TabAppearance
Ereditarietà
TabAppearance

Campi

Buttons 1

Le schede hanno l'aspetto di pulsanti tridimensionali.

FlatButtons 2

Le schede hanno l'aspetto di pulsanti bidimensionali.

Normal 0

Le schede hanno un aspetto standard.

Esempio

Nell'esempio di codice seguente viene illustrato come usare le TabControl.Alignment proprietà e TabControl.Appearance e le TabAlignment enumerazioni e TabAppearance . Per eseguire l'esempio, incollare il codice seguente in un modulo contenente un TabControl oggetto denominato TabControl1. Chiamare il metodo ChangeTheLookOfTheTabControl nel costruttore o nel metodo Load del modulo.

C#
private void ChangeTheLookOfTheTabControl()
{

    // Set the size and location of the TabControl.
    this.TabControl1.Location = new System.Drawing.Point(20, 20);
    TabControl1.Size = new System.Drawing.Size(250, 250);

    // Align the tabs along the bottom of the control.
    TabControl1.Alignment = TabAlignment.Bottom;

    // Change the tabs to flat buttons.
    TabControl1.Appearance = TabAppearance.FlatButtons;
}

Commenti

Questa enumerazione viene utilizzata dai membri, ad TabControl.Appearanceesempio .

Si applica a

Prodotto Versioni
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7

Vedi anche