Chinese Simplified (简体中文)

SetRectangle Method of the FRRectangle Object

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

Syntax

C++

HRESULT SetRectangle(
  int Left,
  int Top,
  int Width,
  int Height
);
    

C#

void SetRectangle(
  int Left,
  int Top,
  int Width,
  int Height
);
    

Visual Basic .NET

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.

Remarks

You can also use the SetRectangleFromLTRB 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

24.03.2023 8:51:52

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.