System.Windows.Forms.TabControl.Alignment Property

Gets or sets the area of the control (for example, along the top) where the tabs are aligned.

Syntax

[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.All)]
[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DefaultValue(System.Windows.Forms.TabAlignment.Top)]
public TabAlignment Alignment { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the TabControl.Alignment property is set to TabAlignment.Left or TabAlignment.Right, the TabControl.Multiline property is automatically set to true.

When you set the TabControl.Appearance property to TabAppearance.FlatButtons, it only appears as such when the TabControl.Alignment property is set to TabAlignment.Top. Otherwise, the TabControl.Appearance property displays as if set to the TabAppearance.Buttons value.

When you set the TabControl.Appearance property to TabAppearance.Buttons, you must also set the TabControl.Alignment property to TabAlignment.Top so that the buttons display correctly.

Note:

When you set the TabControl.Appearance property to Buttons, you must also set the TabControl.Alignment property to Top so that the tab page contents display correctly. Additionally, when visual styles are enabled, and the TabControl.Alignment property is set to a value other than TabAlignment.Top, the tab contents may not render correctly.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0