Region::Union Method (Region^)

 

Updates this Region to the union of itself and the specified Region.

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

public:
void Union(
	Region^ region
)

Parameters

region
Type: System.Drawing::Region^

The Region to unite with this Region.

Exception Condition
ArgumentNullException

region is null.

For a code example, see the Union(RectangleF) and Complement(GraphicsPath^) method.

.NET Framework
Available since 1.1
Return to top
Show: