mlreportgen.dom.LOF Class
Namespace: mlreportgen.dom
Superclasses: mlreportgen.dom.LOC
Description
Use an object of the mlreportgen.dom.LOF
class to create a list of figures
in a report.
Each list item contains the caption of a figure (image) and links to the caption in the
report. In a PDF or Microsoft® Word report, a list item also includes the page number and a leader that fills the
space between the caption and page number. In a PDF or Word report, the list is located at the
point in the report where you append the LOC
object. In an HTML report, the
list is located in a sidebar with the title List of Figures
.
The way a list is generated depends on the report type.
PDF — The DOM API generates the list during report generation.
Word — The DOM API generates a placeholder for the list. To generate the list items, you must update the Word document in your report generation program or in Word. See Update Tables of Contents and Generated Lists in Word Documents.
HTML — The DOM API generates a placeholder for the list. When the report opens in an HTML browser, the browser generates the list.
To include figures (images) in the list of figures:
Create captions for the figures using
mlreportgen.dom.Paragraph
objects.Associate the
Paragraph
objects with a numbering stream that has the namefigure
by using anmlreportgen.dom.AutoNumber
object.
The mlreportgen.dom.LOF
class is a handle
class.
Class Attributes
ConstructOnLoad | true |
HandleCompatible | true |
For information on class attributes, see Class Attributes.
Creation
Description
creates an lofObj
= mlreportgen.dom.LOF()
mlreportgen.dom.LOF
object and sets the LeaderPattern property to '.'
.
creates an lofObj
= mlreportgen.dom.LOF(leaderPattern)
mlreportgen.dom.LOF
object and sets the LeaderPattern property to the specified leader pattern.
Properties
Methods
Examples
Version History
Introduced in R2020b