TabAlignment Enumeration

Definition

Gibt die Speicherorte der Registerkarten in einem Registerkartensteuerelement an.

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

Felder

Name Wert Beschreibung
Top 0

Die Registerkarten befinden sich am oberen Rand des Steuerelements.

Bottom 1

Die Registerkarten befinden sich am unteren Rand des Steuerelements.

Left 2

Die Registerkarten befinden sich am linken Rand des Steuerelements.

Right 3

Die Registerkarten befinden sich am rechten Rand des Steuerelements.

Beispiele

Im folgenden Codebeispiel wird veranschaulicht, wie die TabControl.Alignment Eigenschaften und TabControl.Appearance die TabAlignment Enumerationen TabAppearance verwendet werden. Zum Ausführen des Beispiels fügen Sie den folgenden Code in ein Formular mit dem TabControl Namen TabControl1 ein. Rufen Sie die ChangeTheLookOfTheTabControl-Methode im Konstruktor oder die 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 Membern verwendet, z TabControl.Alignment. B. .

Gilt für:

Weitere Informationen