TabAppearance Enumeration

Definition

Gibt die Darstellung der Registerkarten in einem Registersteuerelement an.

public enum class TabAppearance
public enum TabAppearance
type TabAppearance = 
Public Enum TabAppearance
Vererbung
TabAppearance

Felder

Buttons 1

Die Registerkarten werden als dreidimensionale Schaltflächen dargestellt.

FlatButtons 2

Die Registerkarten werden als flache Schaltflächen dargestellt.

Normal 0

Die Registerkarten werden als Standardregisterkarten dargestellt.

Beispiele

Im folgenden Codebeispiel wird veranschaulicht, wie die TabControl.Alignment TabControl.Appearance Eigenschaften und die TabAlignment Aufzählungen verwendet werden TabAppearance . Fügen Sie zum Ausführen des Beispiels den folgenden Code in ein Formular ein, das einen TabControl namen "TabControl1" enthält. Rufen Sie die ChangeTheLookOfTheTabControl-Methode im Konstruktor oder der Load-Methode des Formulars auf.

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.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 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

Hinweise

Diese Aufzählung wird von Mitgliedern wie TabControl.Appearancez. B. verwendet.

Gilt für

Siehe auch