Class TocFinder

All Implemented Interfaces:
TraversalUtil.Callback

public class TocFinder extends TraversalUtil.CallbackImpl
Don't attempt to reuse this; create a new TocFinder object each time you invoke it. Word (current version 2025 07) adds a table of contents in a content control. <w:sdt> <w:sdtPr> <w:docPartObj> <w:docPartGallery w:val="Table of Contents"/> One which represents a table of figures though, is added without the content control. <w:p> <w:fldSimple w:instr=" TOC \h \z \c "Figure" ">