Skybound AutoComplete

DrawItemEventArgs.DrawText Method (Point, String, Color)

Draws text on the item at the specified location.

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

Parameters

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

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