Поделиться через


Rectangle.Contains Method

Definition

Overloads

Contains(Point)

Whether the pt is within, or along the periphery, of this Rectangle.

Contains(Rectangle)

Whether rect is entirely within, or along the periphery, of this Rectangle.

Contains(Double, Double)

Whether the point described by x and y is within, or along the periphery of, this Rectangle.

Contains(Point)

Whether the pt is within, or along the periphery, of this Rectangle.

public bool Contains (Xamarin.Forms.Point pt);
member this.Contains : Xamarin.Forms.Point -> bool

Parameters

pt
Point

The Point being checked for containment.

Returns

System.Boolean

true if pt is within, or along the periphery, of this Rectangle.

Applies to

Contains(Rectangle)

Whether rect is entirely within, or along the periphery, of this Rectangle.

public bool Contains (Xamarin.Forms.Rectangle rect);
member this.Contains : Xamarin.Forms.Rectangle -> bool

Parameters

rect
Rectangle

The Rectangle being checked for containment.

Returns

System.Boolean

true if the borders of rect are entirely within, or along the periphery, of thisRectangle.

Applies to

Contains(Double, Double)

Whether the point described by x and y is within, or along the periphery of, this Rectangle.

public bool Contains (double x, double y);
member this.Contains : double * double -> bool

Parameters

x
System.Double

The X location of the point being checked.

y
System.Double

The Y location of the point being checked.

Returns

System.Boolean

true if the point described by x and y is within, or along the periphery of, thisRectangle.

Applies to