Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gibt die Position der Registerkarten in einem Registersteuerelement an.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)
Syntax
'Declaration
Public Enumeration TabAlignment
'Usage
Dim instance As TabAlignment
public enum TabAlignment
public enum class TabAlignment
public enum TabAlignment
public enum TabAlignment
Member
| Membername | Beschreibung | |
|---|---|---|
| Bottom | Die Registerkarten werden entlang des unteren Randes des Steuerelements angezeigt. | |
| Left | Die Registerkarten werden entlang des linken Randes des Steuerelements angezeigt. | |
| Right | Die Registerkarten werden entlang des rechten Randes des Steuerelements angezeigt. | |
| Top | Die Registerkarten werden entlang des oberen Randes des Steuerelements angezeigt. |
Hinweise
Diese Enumeration wird von Membern wie TabControl.Alignment 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