Skybound AutoComplete

DrawItemEventArgs.DrawText Method (Point, String)

Draws text on the Graphics surface at the specified location using the default foreground color.

[Visual Basic]
Overloads Public Sub DrawText( _
   ByVal location As Point, _
   ByVal text As String _
)
[C#]
public void DrawText(
   Point location,
   string text
);

Parameters

location
The coordinates where the text is drawn.
text
A string of text to draw.

Remarks

This method draws text onto the graphics surface. The text is automatically clipped to fit within the bounding rectangle of the item.

DrawText uses GDI to render text (whereas Graphics.DrawString uses GDI+) to better match the look and feel of the operating system.

See Also

DrawItemEventArgs Class | Skybound.AutoComplete Namespace | DrawItemEventArgs.DrawText Overload List