---
title: "method"
url: "https://reference.aspose.com/barcode/cpp/aspose.barcode.barcoderecognition/quadrangle/contains/"
product: "Aspose.BarCode for C++ API Reference"
description: " method. Determines if the specified Point is contained within this Quadrangle class in C++."
---

## Quadrangle::Contains(System::Drawing::Point) method


Determines if the specified [Point](../) is contained within this [Quadrangle](../) class.

```cpp
bool Aspose::BarCode::BarCodeRecognition::Quadrangle::Contains(System::Drawing::Point pt)
```


| Parameter | Type | Description |
| --- | --- | --- |
| pt | System::Drawing::Point | The [Point](../) to test. |

### ReturnValue

Returns **true** if [Point](../) is contained within this [Quadrangle](../) class; otherwise, **false**.

## See Also

* Class [Quadrangle](../)
* Namespace [Aspose::BarCode::BarCodeRecognition](../../)
* Library [Aspose.BarCode for C++](../../../)
## Quadrangle::Contains(int32_t, int32_t) method


Determines if the specified point is contained within this [Quadrangle](../) class.

```cpp
bool Aspose::BarCode::BarCodeRecognition::Quadrangle::Contains(int32_t x, int32_t y)
```


| Parameter | Type | Description |
| --- | --- | --- |
| x | int32_t | The x point cordinate. |
| y | int32_t | The y point cordinate. |

### ReturnValue

Returns **true** if point is contained within this [Quadrangle](../) class; otherwise, **false**.

## See Also

* Class [Quadrangle](../)
* Namespace [Aspose::BarCode::BarCodeRecognition](../../)
* Library [Aspose.BarCode for C++](../../../)
## Quadrangle::Contains(System::SharedPtr\<Quadrangle\>) method


Determines if the specified [Quadrangle](../) is contained or intersect this [Quadrangle](../) class.

```cpp
bool Aspose::BarCode::BarCodeRecognition::Quadrangle::Contains(System::SharedPtr<Quadrangle> quad)
```


| Parameter | Type | Description |
| --- | --- | --- |
| quad | System::SharedPtr\<Quadrangle\> | The [Quadrangle](../) to test. |

### ReturnValue

Returns **true** if [Quadrangle](../) is contained or intersect this [Quadrangle](../) class; otherwise, **false**.

## See Also

* Class [Quadrangle](../)
* Class [Quadrangle](../)
* Namespace [Aspose::BarCode::BarCodeRecognition](../../)
* Library [Aspose.BarCode for C++](../../../)
## Quadrangle::Contains(System::Drawing::Rectangle) method


Determines if the specified [Rectangle](../) is contained or intersect this [Quadrangle](../) class.

```cpp
bool Aspose::BarCode::BarCodeRecognition::Quadrangle::Contains(System::Drawing::Rectangle rect)
```


| Parameter | Type | Description |
| --- | --- | --- |
| rect | System::Drawing::Rectangle | The [Rectangle](../) to test. |

### ReturnValue

Returns **true** if [Rectangle](../) is contained or intersect this [Quadrangle](../) class; otherwise, **false**.

## See Also

* Class [Quadrangle](../)
* Namespace [Aspose::BarCode::BarCodeRecognition](../../)
* Library [Aspose.BarCode for C++](../../../)
