style-new TrvActionAddStyleTemplate

Properties   Methods

<< Click to display table of contents >>

style-new TrvActionAddStyleTemplate

Properties   Methods

TrvActionAddStyleTemplate is the action for "Format | Add Style..." command.

Unit RichViewActions;

Syntax

TrvActionAddStyleTemplate = class(TrvAction)

hmtoggle_arrow1Hierarchy

Description

This action is enabled only if Editor.UseStyleTemplates=True.

The action shows a dialog window allowing to manage style templates. When shown initially, the dialog window has a new style template added; its properties are based on the text and paragraph attributes at the position of the caret.

This action can work only if it is linked to TrvActionStyleTemplates action. It can be linked using ActionStyleTemplates property; if this property is not assigned, the action searches for TrvActionStyleTemplates action on the same form.