textbox TrvActionInsertTextBox

Properties   Methods

<< Click to display table of contents >>

textbox TrvActionInsertTextBox

Properties   Methods

TrvActionInsertTextBox inserts a new text box item in the document.

Unit RichViewActions;

Syntax

TrvActionInsertTextBox = class(TrvActionCustomInsertSidenote)

hmtoggle_arrow1Hierarchy

Description

srv_icon ScaleRichView note: it's not recommended to use this action for TSRichViewEdit. Use TsrvActionInsertTextBox instead.

TrvActionInsertTextBox inserts a new text box item in the document, then executes ActionEditNote to open an editor for its document.

When inserting a text box, this action adds a single empty text item in its Document .

Attributes of this text item depend on the target editor's UseStyleTemplates property.

If style templates are used, this text item's paragraph and text are formatted using StyleTemplateName style template. Otherwise, or if this style template does not exist, this text is formatted using Font property.

The following properties are assigned to the inserted text box:

BoxProperties (default: width: 20% of page width, height: auto)

BoxPosition (default: horizontal - centered in the main text area, vertical - 20 pixels below the top of the line)