System::Drawing::Rectangle::IntersectsWith 方法

Rectangle::IntersectsWith method

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

bool System::Drawing::Rectangle::IntersectsWith(const Rectangle &rect)
参数类型描述
rectconst Rectangle&要检查的矩形

ReturnValue

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

另见