> ## 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.

# Engine オブジェクトの CreateRectangle メソッド

このメソッドは [**Rectangle**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/rectangle.md) オブジェクトを作成します。

## 構文

```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
);
```

## パラメーター

**left**

\[in] この変数は、矩形の左端の座標を指定します。

**top**

\[in] この変数は、矩形の上端の座標を指定します。

**right**

\[in] この変数は、矩形の右端の座標を指定します。

**bottom**

\[in] この変数は、矩形の下端の座標を指定します。

**Result**

\[out, retval] [**Rectangle**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/rectangle.md) オブジェクトのインターフェースポインターを受け取る **IRectangle**\* ポインター変数へのポインターです。NULL を指定することはできません。

## 戻り値

このメソッドには固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 関連項目

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

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