Export (0) Print
Expand All

Region.FromHrgn Method

Initializes a new Region from a handle to the specified existing GDI region.

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

public static Region FromHrgn(
	IntPtr hrgn


Type: System.IntPtr

A handle to an existing Region.

Return Value

Type: System.Drawing.Region
The new Region.

This method creates a new Region with an interior defined by the existing Region referred to by the handle in the hrgn parameter.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

© 2015 Microsoft