ToolStrip::TextDirection Property
.NET Framework (current version)
Gets or sets the direction in which to draw text on a ToolStrip.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property ToolStripTextDirection TextDirection { virtual ToolStripTextDirection get(); virtual void set(ToolStripTextDirection value); }
Property Value
Type: System.Windows.Forms::ToolStripTextDirectionOne of the ToolStripTextDirection values. The default is Horizontal.
| Exception | Condition |
|---|---|
| InvalidEnumArgumentException | The specified value is not one of the ToolStripTextDirection values. |
Use the TextDirection property to get or set the direction of the display text of a ToolStripItem, such as a ToolStripLabel or a ToolStripButton. You can set the TextDirection property on the ToolStrip itself, in which case the setting will apply to each ToolStripItem you add to the ToolStrip, or you can set the TextDirection property differently for each ToolStripItem.
.NET Framework
Available since 2.0
Available since 2.0
Show: