System.Windows.Forms.DataGridBoolColumn.Paint Method

Draws the System.Windows.Forms.DataGridBoolColumn with the given System.Drawing.Graphics, System.Drawing.Rectangle, row number, System.Drawing.Brush, and System.Drawing.Color.

Syntax

protected override 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 column.
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

Paints the check box in the column.

Requirements

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