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

# FRRectangle オブジェクトの SetRectangleFromLTRB メソッド

> ABBYY FineReader Engine API の FRRectangle オブジェクトの SetRectangleFromLTRB メソッド。Left、Top、Right、Bottom の各座標から矩形の位置とサイズを設定します（幅と高さは内部で計算されます）。

このメソッドを使用すると、矩形の位置とサイズを設定できます。[SetRectangle](/ja/fine-reader/engine/api-reference/supplementary-objects-and-methods/frrectangle/setrectangle-method) メソッドとの違いは、このメソッドには矩形のすべての座標を渡し、幅と高さはそれらの座標から内部的に計算される点です。

<div id="syntax">
  ## 構文
</div>

<div id="c">
  ### C++
</div>

```cpp theme={null}
HRESULT SetRectangleFromLTRB(
  int Left,
  int Top,
  int Right,
  int Bottom
);
```

### C\#

```csharp theme={null}
void SetRectangleFromLTRB(
  int Left,
  int Top,
  int Right,
  int Bottom
);
```

<div id="visual-basic-net">
  ### Visual Basic .NET
</div>

```vb theme={null}
Sub SetRectangleFromLTRB( _
  Left As Integer, _
  Top As Integer, _
  Right As Integer, _
  Bottom As Integer _
)
```

<div id="parameters">
  ## パラメーター
</div>

Left

\[in] このパラメーターは、矩形の左端の座標を指定します。

Top

\[in] このパラメーターは、矩形の上端の座標を指定します。

Right

\[in] このパラメーターは、矩形の右端の座標を指定します。

Bottom

\[in] このパラメーターは、矩形の下端の座標を指定します。

<div id="return-values">
  ## 戻り値
</div>

このメソッド固有の戻り値はありません。[ABBYY FineReader Engine 関数の標準的な戻り値](/ja/fine-reader/engine/api-reference/return-codes)が返されます。

<div id="see-also">
  ## 関連項目
</div>

[FRRectangle](/ja/fine-reader/engine/api-reference/supplementary-objects-and-methods/frrectangle)
