TabAlignment Enumeration

Definition

Gibt die Position der Registerkarten in einem Registersteuerelement an.

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

Felder

Bottom 1

Die Registerkarten werden entlang des unteren Randes des Steuerelements angezeigt.

Left 2

Die Registerkarten werden entlang des linken Randes des Steuerelements angezeigt.

Right 3

Die Registerkarten werden entlang des rechten Randes des Steuerelements angezeigt.

Top 0

Die Registerkarten werden entlang des oberen Randes des Steuerelements angezeigt.

Beispiele

Im folgenden Codebeispiel wird veranschaulicht, wie sie die TabControl.Alignment TabControl.Appearance Und-Eigenschaften und die TabAlignment TabAppearance Aufzählungen verwenden. 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 in der Konstruktor- oder 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 Elementen wie z TabControl.Alignment. B. .

Gilt für

Siehe auch