## Rectangle::Intersect(const Rectangle\&) method


用当前对象所表示的矩形与指定对象所表示的矩形相交得到的矩形替换当前对象所表示的矩形。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| rect | const Rectangle\& | 表示用于与当前对象所表示的矩形相交的 [Rectangle](../) 对象 |

## 另见

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


返回指定矩形相交的结果矩形。

```cpp
static Rectangle System::Drawing::Rectangle::Intersect(const Rectangle &a, const Rectangle &b)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| a | const Rectangle\& | 第一个要相交的矩形 |
| b | const Rectangle\& | 第二个要相交的矩形 |

### ReturnValue

**a** 与 **b** 相交的结果

## 另见

* Class [Rectangle](../)
* Class [Rectangle](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Font for C++](../../../)
