UpdateTableOfContentsCommand Class
In This Article
Updates a Table of Contents.
Namespace: DevExpress.XtraRichEdit.Commands
Assembly: DevExpress.RichEdit.v14.2.Core.dll
#Declaration
#Remarks
Use the UpdateTableOfContentsCommand command to update the Table of Contents after Table of Contents entries have been changed (for example, new headings have been added or existing headings have been modified or deleted).
Note that since the table of contents is actually the TOC, you can use the FieldCollection.Update method to update all fields in a document including the Table of Contents. Another approach is to iterate through all fields in a document to find a field with a Field.CodeRange starting with the 'TOC' and call its Field.Update method.
#Inheritance
Object
Command
DevExpress.Utils.Commands.ControlCommand<IRichEditControl, RichEditCommandId, DevExpress.XtraRichEdit.Localization.XtraRichEditStringId>
DevExpress.XtraRichEdit.Commands.RichEditCommandBase<DevExpress.XtraRichEdit.Localization.XtraRichEditStringId>
RichEditCommand
RichEditMenuItemSimpleCommand
DevExpress.XtraRichEdit.Commands.FieldBasedRichEditMenuItemSimpleCommand
UpdateTableOfContentsCommand
See Also