NShape Reference
Shape.IntersectsWith Method

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape > Shape Class >

NShape Reference
Shape.IntersectsWith Method

Previous pageReturn to chapter overviewNext page

Determines whether the given rectangle intersects with the shape.

Syntax

public abstract bool IntersectsWith(int x, int y, int width, int height)

Description

When testing for intersection, control points outside the shape's body are not taken into account.

Parameters

Name

Description

x, y, width, height

Defines the rectangle to test.

Return Value

True, if the shape intersects with the given rectangle.

Exceptions

Name

Description

ArgumentException

Input rectangle is invalid.