Intersect()

Rectangle::Intersect(const Rectangle&) 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::Rectangle::Intersect(const Rectangle &rect)

Arguments

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

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

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

static Rectangle System::Drawing::Rectangle::Intersect(const Rectangle &a, const Rectangle &b)

Arguments

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

Return Value

The result of intersection of a with b

See Also