mlreportgen.dom.StyleRef class
Package:mlreportgen.dom
Superclasses:
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 aStyleRef
object to the header, footer, or in the body text. For PDF, you can append aStyleRef
object only to the header or footer.
Tip
UseStyleRef
对象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.
Construction
creates a reference to the content of the paragraph nearest to this object whosestyleref
= StyleRef()OutlineLevel
property of1
.
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 whosestyleref
= StyleRef(num
)OutlineLevel
property has the specified level.
creates a reference to the content of the paragraph nearest to this object that has the specified style name.styleref
= StyleRef(styleName
)
Input Arguments
Output Arguments
Properties
Methods
Method |
Purpose |
---|---|
Copy this object. |