## Region::Complement(const Rectangle\&) method


Replaces the region represented by the current object with the portion of the region defined by the specified recangle that does not intersect with this region.

```cpp
void System::Drawing::Region::Complement(const Rectangle &rect)
```


| Parameter | Type | Description |
| --- | --- | --- |
| rect | const Rectangle\& | A rectangle that defines a region to complement |

## See Also

* Class [Rectangle](../../rectangle/)
* Class [Region](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.PDF for C++](../../../)
## Region::Complement(const RectangleF\&) method


Replaces the region represented by the current object with the portion of the region defined by the specified recangle that does not intersect with this region.

```cpp
void System::Drawing::Region::Complement(const RectangleF &rect)
```


| Parameter | Type | Description |
| --- | --- | --- |
| rect | const RectangleF\& | A rectangle that defines a region to complement |

## See Also

* Class [RectangleF](../../rectanglef/)
* Class [Region](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.PDF for C++](../../../)
## Region::Complement(const SharedPtr\<Drawing2D::GraphicsPath\>\&) method


Replaces the region represented by the current object with the portion of the region defined by the specified path that does not intersect with this region.

```cpp
void System::Drawing::Region::Complement(const SharedPtr<Drawing2D::GraphicsPath> &path)
```


| Parameter | Type | Description |
| --- | --- | --- |
| path | const SharedPtr\<Drawing2D::GraphicsPath\>\& | A path that defines a region to complement |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [GraphicsPath](../../../system.drawing.drawing2d/graphicspath/)
* Class [Region](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.PDF for C++](../../../)
## Region::Complement(const SharedPtr\<Region\>\&) method


Replaces the region represented by the current object with the portion of the specified region that does not intersect with this region.

```cpp
void System::Drawing::Region::Complement(const SharedPtr<Region> &region)
```


| Parameter | Type | Description |
| --- | --- | --- |
| region | const SharedPtr\<Region\>\& | A region to complement |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Region](../)
* Class [Region](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.PDF for C++](../../../)
