Draws the text and rectangle at the given location with the specified alignment.
[Visual Basic] Overloads Protected Sub PaintText( _ ByVal g As Graphics, _ ByVal bounds As Rectangle, _ ByVal text As String, _ ByVal alignToRight As Boolean _ ) [C#] protected void PaintText( Graphics g, Rectangle bounds, string text, bool alignToRight ); [C++] protected: void PaintText( Graphics* g, Rectangle bounds, String* text, bool alignToRight ); [JScript] protected function PaintText( g : Graphics, bounds : Rectangle, text : String, 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