[]
Draws a text in the TextBox client area.
public static void DrawText(this TextBox textBox, Graphics graphics, string text, Color foreColor, Color backColor)
| Type | Name | Description |
|---|---|---|
| TextBox | textBox | The TextBox in which the text is drawn. |
| Graphics | graphics | The Graphics object used to paint. |
| string | text | The text to be drawn. |
| Color | foreColor | The foreground color of the text. |
| Color | backColor | The background color of the text. |
This method is used to draw placeholder text or the text of a disabled text box.