System.Windows.Forms.TabPage.Text Property

Gets or sets the text to display on the tab.

Syntax

[System.ComponentModel.Localizable(true)]
[System.ComponentModel.Browsable(true)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Always)]
public override string Text { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Changing the TabPage.Text property value does not automatically center the new value on the tab if the System.Windows.Forms.TabControl has a TabControl.SizeMode property value of TabSizeMode.Fixed. You can work around this limitation by setting the TabControl.ItemSize property or by removing the System.Windows.Forms.TabPage from the TabControl.TabPages collection and adding it back to the collection. Both of these actions will automatically center the text.

Requirements

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