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

# SetRect Method

This method allows you to set the rectangle for the symbol. It affects its [Left](/fine-reader/engine/api-reference/text-related-objects/charparams#left), [Top](/fine-reader/engine/api-reference/text-related-objects/charparams#top), [Right](/fine-reader/engine/api-reference/text-related-objects/charparams#right), [Bottom](/fine-reader/engine/api-reference/text-related-objects/charparams#bottom) properties, and does not affect the [CharacterRegion](/fine-reader/engine/api-reference/text-related-objects/charparams#characterregion) property. The rectangle is defined in pixel coordinates on image.

## Syntax

### C++

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

### C\#

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

### Visual Basic .NET

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

## Parameters

Left

\[in] Coordinate for the left border of the rectangle.

Top

\[in] Coordinate for the top border of the rectangle.

Right

\[in] Coordinate for the right border of the rectangle.

Bottom

\[in] Coordinate for 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

[CharParams](/fine-reader/engine/api-reference/text-related-objects/charparams)
