System::Drawing::Rectangle::Intersect method

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)
ParameterTypeDescription
rectconst Rectangle&The Rectangle object that represents the rectangle to intersect the rectangle represented by the current object with

See Also

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)
ParameterTypeDescription
aconst Rectangle&The first rectangle to intersect
bconst Rectangle&The second rectangle to intersect

ReturnValue

The result of intersection of a with b

See Also