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

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

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
Double

The X location of the point being checked.

y
Double

The Y location of the point being checked.

Returns

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

Applies to