append
Class: mlreportgen.dom.Container
Namespace: mlreportgen.dom
Append DOM object to container
Syntax
domObjOut = append(containerObj,domObj)
Description
appends
the DOM object to the specified container object. domObjOut
= append(containerObj
,domObj
)
Input Arguments
containerObj
— Container object to append DOM object to
mlreportgen.dom.Container
object
Container object to append DOM object to, specified as an mlreportgen.dom.Container
object.
domObj
— DOM document element object to append
DOM object
DOM document element object to append, specified as a DOM object.
mlreportgen.dom.CustomElement
mlreportgen.dom.Container
mlreportgen.dom.DocumentPart
mlreportgen.dom.FormalTable
mlreportgen.dom.Group
mlreportgen.dom.ExternalLink
mlreportgen.dom.HTML
mlreportgen.dom.HTMLFile
mlreportgen.dom.Image
mlreportgen.dom.InternalLink
mlreportgen.dom.LinkTarget
mlreportgen.dom.OrderedList
mlreportgen.dom.Paragraph
mlreportgen.dom.RawText
mlreportgen.dom.Table
mlreportgen.dom.Text
mlreportgen.dom.TemplateHole
mlreportgen.dom.UnorderedList
Output Arguments
domObjOut
— Appended document element
document element object
Appended document element, returned by one of these DOM objects:
mlreportgen.dom.CustomElement
mlreportgen.dom.Container
mlreportgen.dom.DocumentPart
mlreportgen.dom.FormalTable
mlreportgen.dom.Group
mlreportgen.dom.ExternalLink
mlreportgen.dom.HTML
mlreportgen.dom.HTMLFile
mlreportgen.dom.Image
mlreportgen.dom.InternalLink
mlreportgen.dom.LinkTarget
mlreportgen.dom.OrderedList
mlreportgen.dom.Paragraph
mlreportgen.dom.RawText
mlreportgen.dom.Table
mlreportgen.dom.Text
mlreportgen.dom.TemplateHole
mlreportgen.dom.UnorderedList
Examples
Append Content to Container
Create a container object.
import mlreportgen.dom.*; rpt = Document('MyReport','docx'); c = Container();
Append content to the container and append the container to the report.
append(c,Paragraph('Hello'));
append(c,Table(magic(5)));
append(rpt,c);
Close and generate the report.
close(rpt); rptview(rpt.OutputPath);
Version History
Introduced in R2015a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)