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

Graphics绘制的Region依据。

返回

IntPtr

nativeint

Region的Windows句柄。

例外

gnull

注解

你负责调用 ReleaseHrgn 该方法以释放 GDI 区域对象使用的内存。

适用于