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


用此区域与由指定矩形定义的区域的未相交部分替换当前对象表示的区域。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| rect | const Rectangle\& | 一个矩形，用于定义与当前对象表示的区域进行异或的区域 |

## 另见

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


用此区域与由指定矩形定义的区域的未相交部分替换当前对象表示的区域。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| rect | const RectangleF\& | 一个矩形，用于定义与当前对象表示的区域进行异或的区域 |

## 另见

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


用此区域与由指定路径定义的区域的未相交部分替换当前对象表示的区域。

```cpp
void System::Drawing::Region::Xor(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::Xor(const SharedPtr\<Region\>\&) method


用此区域与指定区域的未相交部分替换当前对象表示的区域。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 区域 | const SharedPtr\<Region\>\& | 一个区域，用于与当前对象表示的区域进行异或 |

## 另见

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