語言

DrawItemEventArgs.IDeviceContext.GetHdc 方法

定義

會將帳柄回傳到 Windows 裝置的上下文。

 virtual IntPtr System.Drawing.IDeviceContext.GetHdc() = System::Drawing::IDeviceContext::GetHdc;
IntPtr IDeviceContext.GetHdc();
abstract member System.Drawing.IDeviceContext.GetHdc : unit -> nativeint
override this.System.Drawing.IDeviceContext.GetHdc : unit -> nativeint
Function GetHdc () As IntPtr Implements IDeviceContext.GetHdc

傳回

IntPtr

nativeint

代表 IntPtr 裝置上下文的 handle 。

實作

備註

此成員為明確介面成員實作。 它只能在實 DrawItemEventArgs 例投射到 IDeviceContext 介面時使用。

適用於