跳轉到主要內容
此方法會將一個區域加入至 Region。

語法

C++

HRESULT AddRect(
  int Left,
  int Top,
  int Right,
  int Bottom
);

C#

void AddRect(
  int Left,
  int Top,
  int Right,
  int Bottom
);

Visual Basic .NET

Sub AddRect( _
  Left As Integer, _
  Top As Integer, _
  Right As Integer, _
  Bottom As Integer _
)

參數

Left [in] 此參數指定區域左側邊界的座標。 Top [in] 此參數指定區域上方邊界的座標。 Right [in] 此參數指定區域右側邊界的座標。 Bottom [in] 此參數指定區域下方邊界的座標。

回傳值

此方法沒有特定的回傳值。它會回傳 ABBYY FineReader Engine 函式的標準回傳值

備註

建議您依照由上到下 (或由左到右) 的順序新增 Region 中的矩形,因為如果在現有矩形之間插入新的矩形,可能會以無法預期的方式改變 Region 結構。

另請參閱

Region