Insert Method of the Paragraph Object

This method inserts a string into the text of the paragraph.

Syntax

C++

HRESULT Insert(
  int          Position,
  BSTR         String,
  ICharParams* Params
);
    

C#

void Insert(
  int        Position,
  string     String,
  ICharParams Params
);
    

Visual Basic .NET

Sub Insert( _
  Position As Integer, _
  String As String, _
  Params As ICharParams _
)
    

Parameters

Position
[in] Position where the string is inserted. Must be not less than 0 and not greater than the length of paragraph.
String
[in] Specifies the string to be inserted. This string may contain the object replacement characters (Unicode 0xFFFC). The object replacement character denotes an embedded picture.
Params
[in] This variable refers to the CharParams object that contains attributes for all characters of the newly inserted string. This parameter may be 0, in which case the default character parameters are used.

Return values

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

Remarks

A paragraph break symbol and a tabulation cannot be inserted into the paragraph using this method. Use the InsertParagraphBreak method to insert a paragraph break symbol, and the InsertTab method to insert a tabulation.

See also

Paragraph

CharParams

24.03.2023 8:51:52

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.