> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateRectangle Method of the Engine Object

This method creates the [**Rectangle**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/rectangle.md) object.

## Syntax

```vb Visual Basic .NET theme={null}
Function CreateRectangle( _
  left As Integer, _
  top As Integer, _
  right As Integer, _
  bottom As Integer _
) As Rectangle
```

```cpp C++ theme={null}
HRESULT CreateRectangle(
  int          left,
  int          top,
  int          right,
  int          bottom,
  IRectangle** Result
);
```

## Parameters

**left**

\[in] This variable specifies the coordinate of the left border of the rectangle.

**top**

\[in] This variable specifies the coordinate of the top border of the rectangle.

**right**

\[in] This variable specifies the coordinate of the right border of the rectangle.

**bottom**

\[in] This variable specifies the coordinate of the bottom border of the rectangle.

**Result**

\[out, retval] A pointer to the **IRectangle\*** pointer variable that receives the interface pointer of the [**Rectangle**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/rectangle.md) object. Must not be NULL.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

[**Engine**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine.md)

[**Rectangle**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/rectangle.md)
