## Rectangle::IntersectsWith method


确定当前对象和指定对象表示的矩形是否相交。

```cpp
bool System::Drawing::Rectangle::IntersectsWith(const Rectangle &rect)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| rect | const Rectangle\& | 要检查的矩形 |

### ReturnValue

如果当前对象和 **rect** 所表示的矩形相交，则为 true；否则为 false

## 另见

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