[]
        
(Showing Draft Content)

C1.Framework.Extension.TextBoxEx.DrawText

DrawText Method

DrawText(TextBox, Graphics, string, Color, Color)

Draws a text in the TextBox client area.

Declaration
public static void DrawText(this TextBox textBox, Graphics graphics, string text, Color foreColor, Color backColor)
Parameters
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.

Remarks

This method is used to draw placeholder text or the text of a disabled text box.