Region.GetHrgn Method (Graphics)

 

Returns a Windows handle to this Region in the specified graphics context.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public IntPtr GetHrgn(
	Graphics g
)

Parameters

g
Type: System.Drawing.Graphics

The Graphics on which this Region is drawn.

Return Value

Type: System.IntPtr

A Windows handle to this Region.

Exception Condition
ArgumentNullException

g is null.

.NET Framework
Available since 1.1
Return to top
Show: