mlreportgen.dom.StyleRef Class
Namespace: mlreportgen.dom
Placeholder for reference to content with specified style name or outline level
Description
Create a placeholder for a reference to content that has a specified style name or outline level. This object applies to Word and PDF reports.
For a Microsoft® Word document, you can append a StyleRef
object to the
header, footer, or in the body text. For PDF, you can append a
StyleRef
object only to the header or footer.
Tip
Use StyleRef
objects to create running headers and footers
in your document. For example, you can use this object to add the title of the
current chapter in the page header.
The mlreportgen.dom.StyleRef
class is a handle
class.
Creation
Description
creates a
reference to the content of the paragraph nearest to this object whose
styleref
= StyleRefOutlineLevel
property of 1
.
In the headers of Word output, the nearest paragraph is the first paragraph on the current page that has the specified outline level. If there is no such paragraph on the current page, the nearest paragraph is the first paragraph on pages before or after the current page that has the specified outline level.
In the footers of Word output, the nearest paragraph is the last paragraph on the current page that has the specified outline level. If there is no such paragraph on the current page, the nearest paragraph is the first paragraph on pages before or after the current page that has the specified outline level.
In page headers and footers in PDF output, the nearest paragraph is the first paragraph on the current page or on pages in the current page layout section before or after the current page.
creates a reference to the content of the paragraph nearest to this object
whose styleref
= StyleRef(num
)OutlineLevel
property has the specified
level.
Input Arguments
Properties
Methods
Examples
Version History
Introduced in R2016a