System::Drawing::RectangleF::Intersect method

RectangleF::Intersect(const RectangleF&) method

Replaces the rectangle represented by the current object with the rectangle that results from the its intersection with the rectangle represented by the specified object.

void System::Drawing::RectangleF::Intersect(const RectangleF &rect)
ParameterTypeDescription
rectconst RectangleF&The RectangleF object that represents the rectangle to intersect the rectangle represented by the current object with

See Also

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

Returns a rectangle that is a result of intersection of the specified rectangles.

static RectangleF System::Drawing::RectangleF::Intersect(const RectangleF &a, const RectangleF &b)
ParameterTypeDescription
aconst RectangleF&The first rectangle to intersect
bconst RectangleF&The second rectangle to intersect

ReturnValue

The result of intersection of a with b

See Also