## RectangleF::Contains(const PointF\&) method


Determines if the specified point is located within the rectangle represented by the current object.

```cpp
bool System::Drawing::RectangleF::Contains(const PointF &point)
```


| Parameter | Type | Description |
| --- | --- | --- |
| point | const PointF\& | A point to check |

### ReturnValue

True if the specified point is located within the rectangle represented by the current object, otherwise - false

## See Also

* Class [PointF](../../pointf/)
* Class [RectangleF](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.TeX for C++](../../../)
## RectangleF::Contains(const RectangleF\&) method


Determines if the specified rectangle is located within the rectangle represented by the current object.

```cpp
bool System::Drawing::RectangleF::Contains(const RectangleF &rect)
```


| Parameter | Type | Description |
| --- | --- | --- |
| rect | const RectangleF\& | A rectangle to check |

### ReturnValue

True if the specified rectangle is located within the rectangle represented by the current object, otherwise - false

## See Also

* Class [RectangleF](../)
* Class [RectangleF](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.TeX for C++](../../../)
## RectangleF::Contains(float, float) method


Determines if the specified point is located within the rectangle represented by the current object.

```cpp
bool System::Drawing::RectangleF::Contains(float x, float y)
```


| Parameter | Type | Description |
| --- | --- | --- |
| x | float | The X coordinate of the point to check |
| y | float | The Y coordinate of the point to check |

### ReturnValue

True if the specified point is located within the rectangle represented by the current object, otherwise - false

## See Also

* Class [RectangleF](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.TeX for C++](../../../)
