跳轉到主要內容
此方法可判斷該 Region 是否與指定矩形相交。它會接收該矩形的座標作為輸入參數。

語法

C++

HRESULT HasIntersectionWithRect(
  int           Left,
  int           Top,
  int           Right,
  int           Bottom,
  VARIANT_BOOL* Result
);

C#

bool HasIntersectionWithRect(
  int Left,
  int Top,
  int Right,
  int Bottom
);

Visual Basic .NET

Function HasIntersectionWithRect( _
  Left As Integer, _
  Top As Integer, _
  Right As Integer, _
  Bottom As Integer _
) As Boolean

參數

Left [in] 此參數指定用於檢查是否相交之矩形左邊界的座標。 Top [in] 此參數指定用於檢查是否相交之矩形上邊界的座標。 Right [in] 此參數指定用於檢查是否相交之矩形右邊界的座標。 Bottom [in] 此參數指定用於檢查是否相交之矩形下邊界的座標。 Result [out, retval] 此參數接收計算結果。若為 TRUE,則表示指定的矩形與該Region相交。

回傳值

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

另請參閱

Region