Contains Method

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)

public bool Contains(
	Point point
)

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:
© 2016 Microsoft