Chinese Simplified (简体中文)

Remove Method of the Text Object

This method removes a range of text specified by the positions of paragraphs and symbols.

Syntax

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

Parameters

FromParagraph
[in] Variable specifying the index of the paragraph for the starting point of the range to be removed.
FromPos
[in] Variable specifying the index of character in the starting paragraph, for the starting point of the range to be removed.
ToParagraph
[in] Variable specifying the index of the paragraph for the ending point of the range to be removed.
ToPos
[in] Variable specifying the index of character in the ending paragraph, for the ending point of the range to be removed. This character itself is not removed from the text.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

Remarks

The ending position for the text to be removed should be farther in the text than the starting one; otherwise, an error code is returned. The symbol in (FromParagraph;FromPos) position is removed from the text, while the character in (ToParagraph;ToPos) position is not removed.

See also

Text

RemoveAll

03.07.2024 8:50:25

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.