Enumerate all paragraphs, styles or header/footer texts
TextDynamic makes it easy to retrieve information about the text and its elements. There are several events which are triggered by certain enumerate functions, so you can extract all styles in the document, format all paragraphs and check which header or footer texts are defined.
The procedure AddTable triggers an event OnCreateNewCell which is triggered for each new cell created by this methods. You can easily add text or attributes inside this event.
All callback functions get an additional user integer variable "EventParam" which has been initialized when calling the enumerate function. You can use this variable to select different algorithms in one event procedure.