Delete Method of the Text Object

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

Syntax

Visual Basic .NET

Sub Delete( _
  From As Integer, _
  To As Integer _
)
    

C++

HRESULT Delete(
  int From,
  int To
);
    

Parameters

From
[in] The variable specifies the index of character in the text for the starting point of the range to be removed.
To
[in] The variable specifies the index of character in the text 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 FlexiCapture SDK 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 From position is removed from the text, while the character in To position is not removed.

See also

Text

IText::Insert

15.08.2023 13:19:30

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.