RectangleF.Contains 方法

定义

确定指定点是否包含在此 RectangleF 结构中。

重载

名称 说明
Contains(PointF)

确定指定点是否包含在此 RectangleF 结构中。

Contains(RectangleF)

确定所表示 rect 的矩形区域是否完全包含在此 RectangleF 结构中。

Contains(Single, Single)

确定指定点是否包含在此 RectangleF 结构中。

Contains(PointF)

Source:
RectangleF.cs
Source:
RectangleF.cs
Source:
RectangleF.cs
Source:
RectangleF.cs
Source:
RectangleF.cs

确定指定点是否包含在此 RectangleF 结构中。

public:
 bool Contains(System::Drawing::PointF pt);
public readonly bool Contains(System.Drawing.PointF pt);
public bool Contains(System.Drawing.PointF pt);
member this.Contains : System.Drawing.PointF -> bool
Public Function Contains (pt As PointF) As Boolean

参数

pt
PointF

PointF 测试的。

返回

true 如果参数所表示的 pt 点包含在此 RectangleF 结构中,则为 ;否则为 false

适用于

Contains(RectangleF)

Source:
RectangleF.cs
Source:
RectangleF.cs
Source:
RectangleF.cs
Source:
RectangleF.cs
Source:
RectangleF.cs

确定所表示 rect 的矩形区域是否完全包含在此 RectangleF 结构中。

public:
 bool Contains(System::Drawing::RectangleF rect);
public readonly bool Contains(System.Drawing.RectangleF rect);
public bool Contains(System.Drawing.RectangleF rect);
member this.Contains : System.Drawing.RectangleF -> bool
Public Function Contains (rect As RectangleF) As Boolean

参数

rect
RectangleF

RectangleF 测试的。

返回

true 如果表示的 rect 矩形区域完全包含在由此 RectangleF表示的矩形区域中,则为 ;否则为 false

适用于

Contains(Single, Single)

Source:
RectangleF.cs
Source:
RectangleF.cs
Source:
RectangleF.cs
Source:
RectangleF.cs
Source:
RectangleF.cs

确定指定点是否包含在此 RectangleF 结构中。

public:
 bool Contains(float x, float y);
public readonly bool Contains(float x, float y);
public bool Contains(float x, float y);
member this.Contains : single * single -> bool
Public Function Contains (x As Single, y As Single) As Boolean

参数

x
Single

要测试的点的 x 坐标。

y
Single

要测试的点的 y 坐标。

返回

true如果此x结构中y定义并RectangleF包含的点,则为 ;否则为 false

适用于