Main Content

mlreportgen.report.InlineContent Class

Namespace: mlreportgen.report
Superclasses: mlreportgen.report.Reporter

Fill inline content hole reporter

Description

Reporter for templates with an inline content hole. An inline hole is a hole within a document body paragraph. Other reporters use this InlineContent reporter to fill inline holes in their templates. Reporters have methods that return instances of this object. Using these object instances, you can customize the format of the content used to fill the holes in their templates. For example, for the TitlePage reporter, the getTitleReporter method returns the instance that the TitlePage reporter uses to fill the TitlePageTitle hole in its template. To customize the title format, specify a custom template for the InlineContent reporter returned by the getTitleReporter method.

Note

Reporters create instances of this object. You do not need to create this object yourself.

The mlreportgen.report.InlineContent class is a handle class.

Properties

expand all

ID of hole to be filled by this reporter, specified as a string.

Data Types: char | string

Content of hole to be filled by this reporter, specified as one of these values:

  • String or character vector

  • Inline DOM object

  • 1-by-N or N-by-1 array of strings or DOM objects

  • 1-by-N or N-by-1 cell array of strings, character vectors, and/or DOM objects

Source of the template for this reporter, specified in one of these ways:

  • Character vector or string scalar that specifies the path of the file that contains the template for this reporter

  • Reporter or report whose template is used for this reporter or whose template library contains the template for this reporter

  • Document Object Model (DOM) document or document part whose template is used for this reporter or whose template library contains the template for this reporter

The specified template must be the same type as the report to which you append this reporter. For example, for a Microsoft® Word report, TemplateSrc must be a Word reporter template. If the TemplateSrc property is empty, this reporter uses the default reporter template for the output type of the report.

Name of the template for this reporter, specified as a character vector or string scalar. The template for this reporter must be in the template library of the template specified by the TemplateSrc property of this reporter.

Data Types: char | string

Hyperlink target for this reporter, specified as a character vector or string scalar that specifies the link target ID, or an mlreportgen.dom.LinkTarget object. A character vector or string scalar value converts to a LinkTarget object. The link target immediately precedes the content of this reporter in the output report.

Version History

Introduced in R2017b