TCustomRichView.OnStyleTemplatesChange

<< Click to display table of contents >>

TCustomRichView.OnStyleTemplatesChange

Occurs when the collection Style.StyleTemplates was changed.

property OnStyleTemplatesChange: TNotifyEvent;

(introduced in version 14)

This event may be called only if UseStyleTemplates=True.

It is called:

when loading or inserting RVF, RTF, DocX files or streams (and StyleTemplateInsertMode<>rvstimIgnoreSourceStyleTemplates);

(in editor) by ChangeStyleTemplates method;

by RichViewActions that can modify this collection (TrvActionNew, TrvActionOpen, TrvActionInsertHyperlink, and actions calling ChangeStyleTemplates: TrvActionStyleTemplates, TrvActionAddStyleTemplate).