Contains Method
Collapse the table of content
Expand the table of content

Rect.Contains Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Indicates whether the rectangle described by the Rect contains the specified point.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

'Declaration
Public Function Contains ( _
	point As Point _
) As Boolean

Parameters

point
Type: System.Windows.Point
The point to check.

Return Value

Type: System.Boolean
true if the rectangle described by the Rect contains the specified point; otherwise, false.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft