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

# SetRectangleFromLTRB Method of the FRRectangle Object

> SetRectangleFromLTRB method of the FRRectangle Object in the ABBYY FineReader Engine API — Sets the rectangle's location and size from Left, Top, Right, Bottom coordinates (width and height computed internally).

This method allows setting the location and size of the rectangle. This method differs from the [SetRectangle](/fine-reader/engine/api-reference/supplementary-objects-and-methods/frrectangle/setrectangle-method) method, because to this method you pass all coordinates of the rectangle, and width and height are to be calculated from them internally.

## Syntax

### C++

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

### Visual Basic .NET

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

## Parameters

Left

\[in] This parameter contains the coordinate of the left border of the rectangle.

Top

\[in] This parameter contains the coordinate of the top border of the rectangle.

Right

\[in] This parameter contains the coordinate of the right border of the rectangle.

Bottom

\[in] This parameter contains the coordinate of the bottom border of the rectangle.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

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