Skybound AutoComplete

MeasureItemEventArgs.GetHdc Method 

Returns the handle to the device context associated with this event.

[Visual Basic]
Public Function GetHdc() As IntPtr
[C#]
public IntPtr GetHdc();

Return Value

A handle to the device context associated with this event.

Remarks

If you use GDI to render the item, using this method will bypass the creation of Graphics object completely and subsequently improve performance. For more information on using GetHdc and ReleaseHdc, refer to the Graphics.GetHdc topic on the MSDN.

See Also

MeasureItemEventArgs Class | Skybound.AutoComplete Namespace