System.Windows.Forms.DataGridColumnStyle.Paint Method

Paints a System.Windows.Forms.DataGridColumnStyle with the specified System.Drawing.Graphics, System.Drawing.Rectangle, System.Windows.Forms.CurrencyManager, row number, background color, foreground color, and alignment.

Syntax

protected virtual void Paint (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, CurrencyManager source, int rowNum, System.Drawing.Brush backBrush, System.Drawing.Brush foreBrush, bool alignToRight)

Parameters

g
The System.Drawing.Graphics to draw to.
bounds
The bounding System.Drawing.Rectangle to paint into.
source
The System.Windows.Forms.CurrencyManager of the System.Windows.Forms.DataGrid control the column belongs to.
rowNum
The number of the row in the underlying data table being referred to.
backBrush
A System.Drawing.Brush used to paint the background color.
foreBrush
A System.Drawing.Color used to paint the foreground color.
alignToRight
A value indicating whether to align the content to the right. true if the content is aligned to the right, otherwise, false.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0