## Region::Complement(const Rectangle\&) method


将当前对象表示的区域替换为由指定矩形定义且不与该区域相交的部分。

```cpp
void System::Drawing::Region::Complement(const Rectangle &rect)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| rect | const Rectangle\& | 用于定义要补集的区域的矩形 |

## 另见

* Class [Rectangle](../../rectangle/)
* Class [Region](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Region::Complement(const RectangleF\&) method


将当前对象表示的区域替换为由指定矩形定义且不与该区域相交的部分。

```cpp
void System::Drawing::Region::Complement(const RectangleF &rect)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| rect | const RectangleF\& | 用于定义要补集的区域的矩形 |

## 另见

* Class [RectangleF](../../rectanglef/)
* Class [Region](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Region::Complement(const SharedPtr\<Drawing2D::GraphicsPath\>\&) method


将当前对象表示的区域替换为由指定路径定义且不与该区域相交的部分。

```cpp
void System::Drawing::Region::Complement(const SharedPtr<Drawing2D::GraphicsPath> &path)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 路径 | const SharedPtr\<Drawing2D::GraphicsPath\>\& | 用于定义要补集的区域的路径 |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [GraphicsPath](../../../system.drawing.drawing2d/graphicspath/)
* Class [Region](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Region::Complement(const SharedPtr\<Region\>\&) method


将当前对象表示的区域替换为指定区域中不与该区域相交的部分。

```cpp
void System::Drawing::Region::Complement(const SharedPtr<Region> &region)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 区域 | const SharedPtr\<Region\>\& | 要补集的区域 |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Region](../)
* Class [Region](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
