跳轉到主要內容
此方法會移除依段落和符號位置指定的文字範圍。

語法

C++

HRESULT Remove(
  int FromParagraph,
  int FromPos,
  int ToParagraph,
  int ToPos
);

C#

void Remove(
  int FromParagraph,
  int FromPos,
  int ToParagraph,
  int ToPos
);

Visual Basic .NET

Sub Remove( _
  FromParagraph As Integer, _
  FromPos As Integer, _
  ToParagraph As Integer, _
  ToPos As Integer _
)

參數

FromParagraph [in] 指定要移除範圍起點所在段落索引的變數。 FromPos [in] 指定起始段落中作為要移除範圍起點的字元索引之變數。 ToParagraph [in] 指定要移除範圍終點所在段落索引的變數。 ToPos [in] 指定結束段落中作為要移除範圍終點的字元索引之變數。此字元本身不會從文字中移除。

回傳值

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

備註

要移除的文字,其結束位置必須在文字中位於起始位置之後;否則會傳回錯誤代碼。位於 (FromParagraph;FromPos) 位置的符號會從文字中移除,而位於 (ToParagraph;ToPos) 位置的字元則不會移除。

另請參閱

Text RemoveAll