append
Class: mlreportgen.dom.Document
Namespace: mlreportgen.dom
Append DOM or MATLAB object to document
Syntax
Description
appends text or numbers to a document and returns a text object. In Microsoft® Word and PDF output, the text is wrapped in a paragraph because Word
and PDF do not permit unwrapped text to be added to the body of a document. In
HTML output, the text is not wrapped in a paragraph.domObjOut
= append(docObj
,textContent
)
appends an unordered list and returns an unordered list object.domObjOut
= append(docObj
,listContent
)
appends a table and returns a table object.domObjOut
= append(docObj
,tableContent
)
appends a paragraph, starts a new page layout section whose properties are
specified by the domObjOut
= append(docObj
,paraObj
,pageLayoutObj
)pageLayoutObject
, and returns a paragraph
object.
Input Arguments
Output Arguments
Examples
Tips
When you append instances of
mlreportgen.dom.Text
,mlreportgen.dom.Number
,mlreportgen.dom.InternalLink
, ormlreportgen.dom.ExternalLink
objects in documents, the object content appends differently depending on the document format. In HTML documents, the content appends in the same line. In PDF and DOCX documents, the content appends in separate lines. To append the content in the same line, create amlreportgen.dom.Paragraph
object, append the content to the paragraph object by using theappend
method, then append the paragraph object to the document object.
Version History
Introduced in R2014b