Region::Exclude Method (Rectangle)

 

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

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

public:
void Exclude(
	Rectangle rect
)

Parameters

rect
Type: System.Drawing::Rectangle

The Rectangle structure to exclude from this Region.

For a code example, see the Exclude(RectangleF) method.

.NET Framework
Available since 1.1
Return to top
Show: