method is used for updating entire TOC field with new entries.
If InstructionText is not specified method will set a default set of switches: \o "1-3" \h \u \z.
GemBox.Document automatically updates page numbers in TOC entries only for PDF, XPS and image file formats, for DOCX file format page numbers have a default value 1. Updating page numbers for TOC entries in DOCX can be achieved by creating an instance of PaginatorOptions, setting its UpdateFields to and calling the GetPaginator(PaginatorOptions) method with that PaginatorOptions instance.Supported TOC switches:
For more information about TOC switches, see Field codes: TOC (Table of Contents) field.
For more information about TC switches, see Field codes: TC (Table of Contents Entry) field.