For text positions in text function such as textmodel::insert, the current table is used.

For text positions in text function such as textmodel::insert, the current table is used. If the function expects a length specification after the position, the value of this parameter is ignored.

The selection is not evaluable in text in overset

Insert text at start of the current text selection:

int  selStart;
:
textmodel::selection (&selStart);
textmodel::insert ("Mein Text", selStart);

If you have to insert more than one piece of text, you have to move the insert point by your own.

Recalculation of text position after text changes:

int  	selStart;
int	oldLen = textmodel::fulllength ();
textmodel::selection (&selStart); textmodel::insert ("Mein Text", selStart);
selStart = selStart + textmodel::fulllength () - oldLen; oldLen = textmodel::fulllength (); textmodel::insert ("Mein 2. Text", selStart);

Preconditions
#include "internal/text.h"

Since
v1.0

Available
priint:comet InDesign® Plug-Ins for InDesign® only (but not for InDesign® Server)

See Also
textmodel::selection
textmodel::fulllength

Alphabetic index HTML hierarchy of classes or Java