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


Replaces the region represented by the current object with the portions of this region and the region defined by the specified recangle that do not intersect.

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


| Parameter | Type | Description |
| --- | --- | --- |
| rect | const Rectangle\& | A rectangle that defines a region to xor with the region represented by the current object |

## See Also

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


Replaces the region represented by the current object with the portions of this region and the region defined by the specified recangle that do not intersect.

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


| Parameter | Type | Description |
| --- | --- | --- |
| rect | const RectangleF\& | A rectangle that defines a region to xor with the region represented by the current object |

## See Also

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


Replaces the region represented by the current object with the portions of this region and the region defined by the specified path that do not intersect.

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


| Parameter | Type | Description |
| --- | --- | --- |
| path | const SharedPtr\<Drawing2D::GraphicsPath\>\& | A path that defines a region to xor with the region represented by the current object |

## See Also

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


Replaces the region represented by the current object with the portions of this region and the specified region that do not intersect.

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


| Parameter | Type | Description |
| --- | --- | --- |
| region | const SharedPtr\<Region\>\& | A region to xor with the region represented by the current object |

## See Also

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