RectangleF.Contains RectangleF.Contains RectangleF.Contains RectangleF.Contains Method

Definition

Determines if the specified point is contained within this RectangleF structure.

Overloads

Contains(PointF) Contains(PointF) Contains(PointF) Contains(PointF)

Determines if the specified point is contained within this RectangleF structure.

Contains(RectangleF) Contains(RectangleF) Contains(RectangleF) Contains(RectangleF)

Determines if the rectangular region represented by rect is entirely contained within this RectangleF structure.

Contains(Single, Single) Contains(Single, Single) Contains(Single, Single) Contains(Single, Single)

Determines if the specified point is contained within this RectangleF structure.

Contains(PointF) Contains(PointF) Contains(PointF) Contains(PointF)

Determines if the specified point is contained within this RectangleF structure.

public:
 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

Parameters

pt
PointF PointF PointF PointF

The PointF to test.

Returns

true if the point represented by the pt parameter is contained within this RectangleF structure; otherwise, false.

Contains(RectangleF) Contains(RectangleF) Contains(RectangleF) Contains(RectangleF)

Determines if the rectangular region represented by rect is entirely contained within this RectangleF structure.

public:
 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

Parameters

Returns

true if the rectangular region represented by rect is entirely contained within the rectangular region represented by this RectangleF; otherwise, false.

Contains(Single, Single) Contains(Single, Single) Contains(Single, Single) Contains(Single, Single)

Determines if the specified point is contained within this RectangleF structure.

public:
 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

Parameters

x
Single Single Single Single

The x-coordinate of the point to test.

y
Single Single Single Single

The y-coordinate of the point to test.

Returns

true if the point defined by x and y is contained within this RectangleF structure; otherwise, false.

Applies to