Freigeben über


TabAppearance-Enumeration

Gibt die Darstellung der Registerkarten in einem Registersteuerelement an.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

Syntax

'Declaration
Public Enumeration TabAppearance
'Usage
Dim instance As TabAppearance
public enum TabAppearance
public enum class TabAppearance
public enum TabAppearance
public enum TabAppearance

Member

  Membername Beschreibung
Buttons Die Registerkarten werden als dreidimensionale Schaltflächen dargestellt. 
FlatButtons Die Registerkarten werden als flache Schaltflächen dargestellt. 
Normal Die Registerkarten werden als Standardregisterkarten dargestellt. 

Hinweise

Diese Enumeration wird von Membern wie TabControl.Appearance verwendet.

Beispiel

Im folgenden Codebeispiel wird die Verwendung der TabControl.Alignment-Eigenschaft und der TabControl.Appearance-Eigenschaft sowie der TabAlignment-Enumeration und der TabAppearance-Enumeration veranschaulicht. Fügen Sie zum Ausführen des Beispiels folgenden Code in ein Formular ein, das ein TabControl namens TabControl1 enthält. Rufen Sie die ChangeTheLookOfTheTabControl-Methode im Konstruktor oder in der Load-Methode des Formulars auf.

Private Sub ChangeTheLookOfTheTabControl()

    ' Set the size and location of the TabControl.
    Me.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
End Sub
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;
}
private:
   void ChangeTheLookOfTheTabControl()
   {
      // Set the size and location of the TabControl.
      this->TabControl1->Location = System::Drawing::Point( 20, 20 );
      TabControl1->Size = 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;
   }
private void ChangeTheLookOfTheTabControl()
{
    // Set the size and location of the TabControl.
    this.tabControl1.set_Location(new System.Drawing.Point(20, 20));
    tabControl1.set_Size(new System.Drawing.Size(250, 250));
    // Align the tabs along the bottom of the control.
    tabControl1.set_Alignment(TabAlignment.Bottom);
    // Change the tabs to flat buttons.
    tabControl1.set_Appearance(TabAppearance.FlatButtons);
} //ChangeTheLookOfTheTabControl

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

System.Windows.Forms-Namespace
TabControl