insertText Method

Summary

Inserts a text piece into the structure.

Syntax

TypeScript
    insertText(txt: string | TextPiece, pos: EditPosition, options?: EngineOptions): void; 

Parameters

txt

The text to insert.

pos

Position to insert the text in the document.

options

The options to use when executing this command.

Remarks

Note: This method contains an overload for passing a TextPiece. This is mainly used by the history feature. Do NOT create TextPieces with arbitrary buffer starts.

Requirements

Target Platforms

See Also

EditableContent Object

EditableContent Members

Leadtools.Document.Editor Namespace

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Editor Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.