NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataGridBoolColumn.Paint

Draws the TBD with the given TBD, Rectangle, row number, TBD, and Color.

[Visual Basic]
Overrides Public Sub Paint( _
   ByVal g As Graphics, _
   ByVal bounds As Rectangle, _
   ByVal source As ListManager, _
   ByVal rowNum As Integer, _
   ByVal backBrush As Brush, _
   ByVal foreBrush As Brush, _
   ByVal alignToRight As Boolean _
)
[C#]
public override void Paint(
   Graphics g,
   Rectangle bounds,
   ListManager source,
   int rowNum,
   Brush backBrush,
   Brush foreBrush,
   bool alignToRight
);
[C++]
public: override void Paint(
   Graphics* g,
   Rectangle bounds,
   ListManager* source,
   int rowNum,
   Brush* backBrush,
   Brush* foreBrush,
   bool alignToRight
);
[JScript]
public override function Paint(
   g : Graphics,
   bounds : Rectangle,
   source : ListManager,
   rowNum : int,
   backBrush : Brush,
   foreBrush : Brush,
   alignToRight : Boolean
);

Parameters

g
The Graphics object to draw to.
bounds
The bounding Rectangle to paint into.
source
The TBD of the DataGrid the column belongs to.
rowNum
The number of the row in the underlying data table being referred to.
backBrush
A Brush used to paint the background color.
foreBrush
[To be supplied.]
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.

See Also

DataGridBoolColumn Class | DataGridBoolColumn Members | System.WinForms Namespace | Edit