跳轉到主要內容
此方法於用戶端實作。在 Text Editor 中的游標位置變更後,ABBYY FineReader Engine 會呼叫此方法。 它會將游標目前所在的 Block 索引,以及該 Block 中儲存格的索引傳遞給客戶端。

語法

C++

HRESULT OnEditorBlockChanged(
  int BlockIndex,
  int CellIndex,
);

C#

void OnEditorBlockChanged(
  int BlockIndex,
  int CellIndex,
);

Visual Basic .NET

Sub OnEditorBlockChanged( _
  BlockIndex As Integer, _
  CellIndex As Integer _
)

參數

BlockIndex [in] 包含該 Block 的索引。此索引位於 ILayout::VisualBlocks 集合中。 CellIndex [in] 包含表格 Block 中儲存格的索引。

回傳值

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

備註

此方法的客戶端實作必須確保在方法內部擲出的所有例外狀況都會被攔截並處理,且不會有任何例外狀況傳播到方法外部。例外狀況若傳播到方法外部,可能會導致無法預期的結果 (例如程式終止) 。

另請參閱

ITextEditorEvents