Region.GetHrgn(Graphics) 方法

定義

傳回這個 Region 在指定之圖形內容中的 Windows 控制代碼。

public:
 IntPtr GetHrgn(System::Drawing::Graphics ^ g);
public IntPtr GetHrgn (System.Drawing.Graphics g);
member this.GetHrgn : System.Drawing.Graphics -> nativeint
Public Function GetHrgn (g As Graphics) As IntPtr

參數

g
Graphics

在其上繪製 GraphicsRegion

傳回

IntPtr

nativeint

這個 Region 的 Windows 控制代碼。

例外狀況

gnull

備註

您必須負責呼叫 ReleaseHrgn 方法來釋放 GDI 區域物件所使用的記憶體。

適用於