System::Drawing::RectangleF::Intersect 方法

RectangleF::Intersect(const RectangleF&) method

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

void System::Drawing::RectangleF::Intersect(const RectangleF &rect)
参数类型描述
rectconst RectangleF&表示与当前对象所表示的矩形相交的矩形的 RectangleF 对象

另见

RectangleF::Intersect(const RectangleF&, const RectangleF&) method

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

static RectangleF System::Drawing::RectangleF::Intersect(const RectangleF &a, const RectangleF &b)
参数类型描述
aconst RectangleF&第一个要相交的矩形
bconst RectangleF&第二个要相交的矩形

ReturnValue

ab 相交的结果

另见