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


用此区域与由指定矩形定义的区域的并集结果替换当前对象表示的区域。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| rect | const Rectangle\& | 一个矩形，用于定义与此区域合并的区域 |

## 另见

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


用此区域与由指定矩形定义的区域的并集结果替换当前对象表示的区域。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| rect | const RectangleF\& | 一个矩形，用于定义与此区域合并的区域 |

## 另见

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


用此区域与由指定路径定义的区域的并集结果替换当前对象表示的区域。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 路径 | const SharedPtr\<Drawing2D::GraphicsPath\>\& | 一个路径，用于定义与此区域合并的区域 |

## 另见

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


用此区域与指定区域的并集结果替换当前对象表示的区域。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 区域 | const SharedPtr\<Region\>\& | 一个用于与此区域合并的区域 |

## 另见

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