- g
- A System.Drawing.Graphics object used to draw the string.
- textBounds
- A System.Drawing.Rectangle which contains the boundary data of the rectangle.
- text
- The string to be drawn to the screen.
- backBrush
- A System.Drawing.Brush that determines the rectangle's background color
- foreBrush
- A System.Drawing.Brush that determines the rectangles foreground color.
- alignToRight
- A value indicating whether the text is right-aligned.
The DataGridTextBoxColumn.PaintText(System.Drawing.Graphics, System.Drawing.Rectangle, string, bool) method uses the DataGridTextBoxColumn.Format property to format the value before drawing it to the screen.
The DataGridColumnStyle.Paint(System.Drawing.Graphics, System.Drawing.Rectangle, CurrencyManager, int) method calls the DataGridTextBoxColumn.PaintText(System.Drawing.Graphics, System.Drawing.Rectangle, string, bool) method.