Method Exclude
Exclude(Rectangle)
Removes the specified rectangle from the region.
public void Exclude(Rectangle rectangle)
Parameters
rectangle
RectangleThe rectangle to exclude from the region.
Remarks
This is a helper method that is equivalent to calling Combine(Rectangle, RegionOp) with Difference.
Exclude(Region?)
Removes the portion of the specified region from this region.
public void Exclude(Region? region)
Parameters
region
RegionThe region to exclude from this region.
Remarks
This is a helper method that is equivalent to calling Combine(Region?, RegionOp) with Difference.