Skybound AutoComplete

MeasureItemEventArgs.ReleaseHdc Method 

Releases a device context handle obtained by a previous call to the GetHdc method of this event.

[Visual Basic]
Public Sub ReleaseHdc( _
   ByVal hdc As IntPtr _
)
[C#]
public void ReleaseHdc(
   IntPtr hdc
);

Parameters

hdc
Handle to a device context obtained by a previous call to the GetHdc method of 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