mlreportgen.dom.TemplateStylesheet Class
Namespace: mlreportgen.dom
Description
The mlreportgen.dom.TemplateStylesheet class contains the styles for a
mlreportgen.dom.Template object. On opening, the
mlreportgen.dom.Template creates an instance of
mlreportgen.dom.TemplateStylesheet in its Stylesheet
property. Creating the mlreportgen.dom.Template object, which is based on the
source template document, automatically populates its Stylesheet
property with the styles already present in the source template. Use the methods of this class
to add, remove, or replace styles. The parent mlreportgen.dom.Template object
generates all styles in the TemplateStylesheet object in the resulting
template document.
Note
DOM format classes such as mlreportgen.dom.Bold and
mlreportgen.dom.Color define the formatting for new styles. DOM template
style classes do not support these formatting classes:
ListStyleTypeNumberFormatOutlineLevelScaleToFit
DOM template style classes for DOCX template output do not support these DOM format classes:
CounterIncCounterResetFlowDirection(supported forTemplateParagraphStyleonly)HeightResizeToFitContentsRowHeightTextOrientationWidthWhiteSpace
The mlreportgen.dom.TemplateStylesheet class is a handle class.
Properties
Methods
Examples
Version History
Introduced in R2024a
See Also
mlreportgen.dom.Template | mlreportgen.dom.TemplateDOCXStyle | mlreportgen.dom.TemplateHTMLStyle | mlreportgen.dom.TemplatePDFStyle | mlreportgen.dom.TemplateTextStyle | mlreportgen.dom.TemplateParagraphStyle | mlreportgen.dom.TemplateLinkedStyle | mlreportgen.dom.TemplateOrderedListStyle | mlreportgen.dom.TemplateTableStyle | mlreportgen.dom.TemplateUnorderedListStyle