Skip to main content
A newer version of this page is available. .

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.

To localize the caption and hint displayed by UI elements linked to a TdxRichEditControlUpdateTableOfContents action object, use the sdxRichEditCommandUpdateTableOfContentsMenuCaption and sdxRichEditCommandUpdateTableOfContentsDescription resource strings, respectively.

See Also