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!

DataGridTextBoxColumn.Paint (Graphics, Rectangle, ListManager, Int32, Boolean)

Paints a TBD with the specified TBD, TBD, DataView, row number, and alignment.

[Visual Basic]
Overloads Overrides Public Sub Paint( _
   ByVal g As Graphics, _
   ByVal bounds As Rectangle, _
   ByVal source As ListManager, _
   ByVal rowNum As Integer, _
   ByVal alignToRight As Boolean _
)
[C#]
public override void Paint(
   Graphics g,
   Rectangle bounds,
   ListManager source,
   int rowNum,
   bool alignToRight
);
[C++]
public: override void Paint(
   Graphics* g,
   Rectangle bounds,
   ListManager* source,
   int rowNum,
   bool alignToRight
);
[JScript]
public override function Paint(
   g : Graphics,
   bounds : Rectangle,
   source : ListManager,
   rowNum : int,
   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 is contained in.
rowNum
The number of the row in the underlying data referred to.
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

The Paint method uses the GetColumnValueAtRow to determine the value to draw in the cell. The PaintText method is called to draw the cell and its contents.

See Also

DataGridTextBoxColumn Class | DataGridTextBoxColumn Members | System.WinForms Namespace | DataGridTextBoxColumn.Paint Overload List | Edit | PaintText