語言

Region.GetHrgn(Graphics) 方法

定義

在指定的圖形情境中回傳 Windows 的 handle 來回應此。Region

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

這本書Graphics就是基於這個Region詞。

傳回

IntPtr

nativeint

一個Windows 這個 Region。

例外狀況

g 是 null。

備註

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

適用於