mlreportgen.report.SectionTitle Class
Namespace: mlreportgen.report
Superclasses: mlreportgen.report.Title
Generate a section title
Description
Only another report, called the owner, can create an instance of this class. The instance
fills a hole in a template that the owner specifies with a title that the owner specifies via
an instance template and the instance properties that it sets. For example, an
mlreportgen.report.Section
reporter (the owner) uses an instance of this
class to fill the Title
hole in its template with a hierarchically numbered
title.
The title generated by an instance of this class consists of static text and dynamic
content. The static text is specified by the instance template. The dynamic content is
specified by the instance Content
, NumberPrefix
, and
NumberSuffix
properties. If the name of a template hole matches one of
these property names, this reporter fills the hole with the value property. For example, if
the title template contains a Content
hole and a
NumberPrefix
hole, this reporter fills those holes with the values of the
corresponding properties.
The owner specifies the location of the title template with the instance
TemplateSrc
, TemplateName
, and
OutlineLevel
properties. The TemplateSrc
property
specifies the source of a template file whose template library contains the title template.
The TemplateName
property specifies the root name of the title template.
The OutlineLevel
property specifies the level in the report hierarchy of
the content generated by the owner. The SectionTitle
instance appends the
value of the OutlineLevel
property to the value of the
TemplateName
property to create the full name of the title template.
For example, the Section
reporter template library contains six numbered title
templates, each corresponding to a section level. The names of the templates are
SectionNumberedTemplate1
, SectionNumberedTemplate2
,
and so on. To specify use of the SectionNumberedTemplate1
template to
generate a section title, the Section reporter sets the SectionTitle
TemplateName
property to SectionNumberedTemplate
and
the OutlineLevel
property to 1.
If the SectionTitle
LinkTarget
property is set, the instance precedes the generated title
with a link target having the specified target ID.
The mlreportgen.report.SectionTitle
class is a handle
class.
Properties
Version History
Introduced in R2018b