Region::Exclude Method (Region^)

 

Updates this Region to contain only the portion of its interior that does not intersect with the specified Region.

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

public:
void Exclude(
	Region^ region
)

Parameters

region
Type: System.Drawing::Region^

The Region to exclude from this Region.

Exception Condition
ArgumentNullException

region is null.

For code examples, see the Exclude(RectangleF) andComplement(Region^) methods.

.NET Framework
Available since 1.1
Return to top
Show: