TextDocument.SetText

Syntax:

SetText(<TextForSetting>)

Parameters:

<TextForSetting> (required)

Type: String.
Text that is placed into a text document.

Description:

Puts text from a passed string into a text document. The text that was contained in the text document before execution of the method is deleted.

Availability:

Thin client, web-client, server, thick client, external connection.

Example:

TextDocument.SetText("
|This 
|text
|is set from a string"
);


    

1C:Enterprise Developer's Community