System.Windows.Forms.ToolBarButton.Text Property

Gets or sets the text displayed on the toolbar button.

Syntax

[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DefaultValue("")]
public string Text { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The default the Text property value is an empty string ("") unless you created the control with the ToolBar.#ctor constructor that accepts the text string as a parameter. The orientation of the text on the toolbar button is determined by the ToolBar.TextAlign property of the button's parent System.Windows.Forms.ToolBar, which can be set to one of the System.Windows.Forms.ToolBarTextAlign enumeration values. The orientation is in relation to the image assigned to the button. If no image is assigned to the button, there will be space left for one on the surface of the toolbar button.

Requirements

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