System.Windows.Forms.DataGridTextBoxColumn.Paint Method

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

Syntax

protected override void Paint (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, CurrencyManager source, int rowNum, bool alignToRight)

Parameters

g
The System.Drawing.Graphics object to draw to.
bounds
The bounding System.Drawing.Rectangle to paint into.
source
The System.Windows.Forms.CurrencyManager of the System.Windows.Forms.DataGrid the that contains the column.
rowNum
The number of the row in the underlying data table.
alignToRight
A value indicating whether to align the column's content to the right. true if the content should be aligned to the right; otherwise, false.

Remarks

Requirements

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