Region.FromHrgn(IntPtr) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new Region from a handle to the specified existing GDI region.
public:
static System::Drawing::Region ^ FromHrgn(IntPtr hrgn);
public static System.Drawing.Region FromHrgn (IntPtr hrgn);
static member FromHrgn : nativeint -> System.Drawing.Region
Public Shared Function FromHrgn (hrgn As IntPtr) As Region
Parameters
Returns
The new Region.
Remarks
This method creates a new Region with an interior defined by the existing Region referred to by the handle in the hrgn
parameter.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.