共用方式為


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

適用於