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

# SetRectangle Method of the FRRectangle Object

This method allows setting the location and size of the rectangle.

## Syntax

### C++

```cpp theme={null}
HRESULT SetRectangle(
  int Left,
  int Top,
  int Width,
  int Height
);
```

### C\#

```csharp theme={null}
void SetRectangle(
  int Left,
  int Top,
  int Width,
  int Height
);
```

### Visual Basic .NET

```vb theme={null}
Sub SetRectangle( _
  Left As Integer, _
  Top As Integer, _
  Width As Integer, _
  Height 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.

Width

\[in] This parameter contains the width of the rectangle.

Height

\[in] This parameter contains the height 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).

## Remarks

You can also use the [SetRectangleFromLTRB](/fine-reader/engine/api-reference/supplementary-objects-and-methods/frrectangle/setrectanglefromltrb-method) method to set the location and size of the rectangle. It allows you to specify all the coordinates, and width and height of the resulting rectangle will be calculated internally.

## See also

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