This topic has not yet been rated - Rate this topic

Rectangle.IntersectsWith Method

Determines if this rectangle intersects with rect.

[Visual Basic]
Public Function IntersectsWith( _
   ByVal rect As Rectangle _
) As Boolean
[C#]
public bool IntersectsWith(
 Rectangle rect
);
[C++]
public: bool IntersectsWith(
 Rectangle rect
);
[JScript]
public function IntersectsWith(
   rect : Rectangle
) : Boolean;

Parameters

rect
The rectangle to test.

Return Value

This method returns true if there is any intersection.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

Rectangle Structure | Rectangle Members | System.Drawing Namespace

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.