Remove Method of the Text Object
This method removes a range of text specified by the positions of paragraphs and symbols.
Syntax
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 _ )
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
9/17/2024 3:14:41 PM