- g
- A System.Drawing.Graphics object used to draw the string.
- bounds
- A System.Drawing.Rectangle which contains the boundary data of the rectangle.
- text
- The string to be drawn to the screen.
- alignToRight
- A value indicating whether the text is right-aligned.
The DataGridTextBoxColumn.PaintText(System.Drawing.Graphics, System.Drawing.Rectangle, string, bool) method uses the System.Windows.Forms.DataFormats.Format object set with 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.