Skip to main content

EnterText

Add text to the document on the cursor position.

Syntax

expression.EnterText(sText);

expression - A variable that represents a ApiDocument class.

Parameters

NameRequired/OptionalData typeDefaultDescription
sTextRequiredstringThe text to add to document.

Returns

boolean

Example

This example shows how to enter text at the current cursor position.

// How to add a line break at the cursor position.

// Enter text in a paragraph and add a line break.
let doc = Api.GetDocument();
doc.EnterText("This is the text in your document.");