Skip to main content

TdxRichEditControlUpdateTableOfContents Class

An action object that corresponds to the UpdateTableOfContents command provided by the Rich Edit control.

Declaration

TdxRichEditControlUpdateTableOfContents = class(
    TdxRichEditControlAction
)

Remarks

This class does not introduce any new public members. A table of contents is based on the text paragraphs to which the Heading 1, Heading 2, etc. styles are applied. Modifying one of these paragraphs does not automatically change the table of contents. Executing a TdxRichEditControlUpdateTableOfContents action object updates a table of contents (i.e., a TOC document field) in which the caret or text selection is currently located.

UI elements linked to a TdxRichEditControlUpdateTableOfContents action object are enabled only if the Rich Edit control’s ReadOnly property is set to False.

See Also