Rect::IntersectsWith method (gdiplustypes.h)

The Rect::IntersectsWith method determines whether this rectangle intersects another rectangle.

Syntax

BOOL IntersectsWith(
  [in] const Rect & rect
);

Parameters

[in] rect

Type: const Rect&

Reference to a rectangle to test.

Return value

Type: BOOL

If the intersection of the two rectangles is not empty, this method returns TRUE; otherwise, it returns FALSE.

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplustypes.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Intersect Methods

Pens, Lines, and Rectangles

Rect

RectF

Using a Pen to Draw Lines and Rectangles