Region.Contains 方法

定义

重载

Contains(Point)

如果指定的点在区域内,则返回 true。 否则返回 false

Contains(Double, Double)

如果指定坐标表示的点在区域内,则返回 true。 否则返回 false

Contains(Point)

如果指定的点在区域内,则返回 true。 否则返回 false

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

参数

pt
Point

要检查的点。

返回

System.Boolean

如果指定的点在区域内,则为 true。 否则为 false

适用于

Contains(Double, Double)

如果指定坐标表示的点在区域内,则返回 true。 否则返回 false

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

参数

x
System.Double

要检查的 X 坐标。

y
System.Double

要检查的 Y 坐标。

返回

System.Boolean

如果指定坐标表示的点在区域内,则为 true。 否则为 false

适用于