Intersect()

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)

Arguments

ParameterTypeDescription
rectconst RectangleF&The RectangleF object that represents the rectangle to intersect the rectangle represented by the current object with

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)

Arguments

ParameterTypeDescription
aconst RectangleF&The first rectangle to intersect
bconst RectangleF&The second rectangle to intersect

Return Value

The result of intersection of a with b

See Also