Get Started
Usage API
More information

UpdateAllTOF

UpdateAllTOF([bOnlyPageNumbers])

Updates all tables of figures in the current document.

Parameters:

Name Type Default Description
bOnlyPageNumbers boolean false

Specifies that only page numbers will be updated.

Returns:

This method doesn't return any data.

Example

Copy code
builder.CreateFile("docx");
var oDocument = Api.GetDocument();
oDocument.UpdateAllTOF(true);
var oParagraph = oDocument.GetElement(0);
oParagraph.AddText("Apply this script to the document with tables of figures and all of them will be updated.");
builder.SaveFile("docx", "UpdateAllTOF.docx");
builder.CloseFile();

Resulting document