Draws the text and rectangle at the specified location with the specified colors and alignment.
[Visual Basic] Overloads Protected Sub PaintText( _ ByVal g As Graphics, _ ByVal textBounds As Rectangle, _ ByVal text As String, _ ByVal backBrush As Brush, _ ByVal foreBrush As Brush, _ ByVal alignToRight As Boolean _ ) [C#] protected void PaintText( Graphics g, Rectangle textBounds, string text, Brush backBrush, Brush foreBrush, bool alignToRight ); [C++] protected: void PaintText( Graphics* g, Rectangle textBounds, String* text, Brush* backBrush, Brush* foreBrush, bool alignToRight ); [JScript] protected function PaintText( g : Graphics, textBounds : Rectangle, text : String, backBrush : Brush, foreBrush : Brush, alignToRight : Boolean );
The PaintText method uses the Format object set with the Format property to format the value before drawing it to the screen.
The Paint method calls the PaintText method.
DataGridTextBoxColumn Class | DataGridTextBoxColumn Members | System.WinForms Namespace | DataGridTextBoxColumn.PaintText Overload List | Format | Format | Paint