Rectangle.Contains 方法

定义

重载

Contains(Point)

pt 是否在此 Rectangle 内部或边缘位置。

Contains(Rectangle)

rect 是否完全位于此 Rectangle 内部或边缘位置。

Contains(Double, Double)

xy 描述的点是否在此 Rectangle 内部或边缘位置。

Contains(Point)

pt 是否在此 Rectangle 内部或边缘位置。

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

参数

pt
Point

要检查包含关系的 Point

返回

System.Boolean

如果 pt 位于此 Rectangle 内部或边缘位置,则为 true

适用于

Contains(Rectangle)

rect 是否完全位于此 Rectangle 内部或边缘位置。

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

参数

rect
Rectangle

要检查包含关系的 Rectangle

返回

System.Boolean

true 如果 的 rect 边框完全位于 的外围 thisRectangle内或沿 。

适用于

Contains(Double, Double)

xy 描述的点是否在此 Rectangle 内部或边缘位置。

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

参数

x
System.Double

要检查的点的 X 位置。

y
System.Double

要检查的点的 Y 位置。

返回

System.Boolean

true如果 和 y 描述的x点在 的外围内或沿 。 thisRectangle

适用于