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.PaintText (Graphics, Rectangle, String, Boolean)

Draws the text and rectangle at the given location with the specified alignment.

[Visual Basic]
Overloads Protected Sub PaintText( _
   ByVal g As Graphics, _
   ByVal bounds As Rectangle, _
   ByVal text As String, _
   ByVal alignToRight As Boolean _
)
[C#]
protected void PaintText(
   Graphics g,
   Rectangle bounds,
   string text,
   bool alignToRight
);
[C++]
protected: void PaintText(
   Graphics* g,
   Rectangle bounds,
   String* text,
   bool alignToRight
);
[JScript]
protected function PaintText(
   g : Graphics,
   bounds : Rectangle,
   text : String,
   alignToRight : Boolean
);

Parameters

g
A Graphics object used to draw the string.
bounds
A Rectangle which contains the boundary data of the rectangle.
text
The string to be drawn to the screen.
alignToRight
A value indicating whether the text is right-aligned.

Remarks

The PaintText method uses the Format object set with the Format property to format the value before drawing it to the screen.

The Paint method calls the PaintText method.

See Also

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