ToolStripItemTextRenderEventArgs::TextFormat Property
Gets or sets the display and layout information of the text drawn on the ToolStripItem.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property TextFormatFlags TextFormat { TextFormatFlags get(); void set(TextFormatFlags value); }
Property Value
Type: System.Windows.Forms::TextFormatFlagsA bitwise combination of the TextFormatFlags values that specify the display and layout information of the drawn text.
The following code example demonstrates the use of this member. In the example, an event handler reports on the occurrence of the ToolStripRenderer::RenderItemText event. This report helps you to learn when the event occurs and can assist you in debugging.
To run the example code, paste it into a project that contains an instance of a type that inherits from ToolStripRenderer, such as a ToolStripSystemRenderer or ToolStripProfessionalRenderer. Then name the instance ToolStripRenderer1 and ensure that the event handler is associated with the ToolStripRenderer::RenderItemText event.
Available since 2.0