Occurs just before the text of the button is drawn.
Syntax
Event Data
The event handler receives an argument of type BeforeTextDisplayEventArgs containing data related to this event. The following BeforeTextDisplayEventArgs properties provide information specific to this event.
| Property | Description |
|---|
| ButtonStatus | The current status of the button. |
| Font | Gets and sets the Font that will be used to render the text in the control. |
| Text | Gets and sets the text that will be rendered in the control. |
| TextAlignment | Gets and sets the alignment used when rendering the text in the control. |
| TextColor | Gets and sets the color used to paint the text in the control. |
| TextFormat | Gets and sets the string format applied to the rendered text in the control. |
Requirements
Target Platforms: Current Windows operating system with .NET 8.
See Also