Region Constructor (GraphicsPath^)

 

Initializes a new Region with the specified GraphicsPath.

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

public:
Region(
	GraphicsPath^ path
)

Parameters

path
Type: System.Drawing.Drawing2D::GraphicsPath^

A GraphicsPath that defines the new Region.

Exception Condition
ArgumentNullException

path is null.

This method creates a new Region with a GraphicsPath. The new region is defined as the interior of the GraphicsPath specified by the path parameter.

.NET Framework
Available since 1.1
Return to top
Show: