Επεξεργασία

Κοινή χρήση μέσω


Rect.Contains(Point) Method

Definition

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

public:
 bool Contains(Windows::Foundation::Point point);
public bool Contains (Windows.Foundation.Point point);
member this.Contains : Windows.Foundation.Point -> bool
Public Function Contains (point As Point) As Boolean

Parameters

point
Point

The point to check.

Returns

true if the rectangle described by the Rect contains the specified point; otherwise, false.

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) Rect struct. For more information, see Rect in the UWP API reference.

For more information and examples of this member, see <System.Windows.Rect.Contains%2A?displayProperty=nameWithType> in the .NET Framework API reference. (Examples show WPF usage and might not translate directly to UWP XAML.)

Applies to