mlreportgen.dom.ListItem Class
Namespace: mlreportgen.dom
Create item for ordered or unordered list
Description
Specifies an item in an ordered (numbered) or unordered (bulleted) list.
The mlreportgen.dom.ListItem
class is a handle
class.
Creation
Description
creates
an empty list item. listItemObj
= ListItem
creates a list item using the specified text. The constructor creates a text
object and appends the text object to the list item. In Microsoft® Word and PDF output, text in a list item is wrapped in a paragraph
because Word and PDF do not permit unwrapped text in list items. In HTML
output, the text is not wrapped in a paragraph.listItemObj
= ListItem(text
)
creates a list item and appends the specified document element object to the
list item.listItemObj
= ListItem(domObj
)
Input Arguments
Properties
Methods
Examples
Tips
Depending on how you create a multilevel list, a sublist can be a child of the parent list or a child of the preceding list item in the parent list. If the sublist is child of a list item in the parent list, the sublist inherits the formatting from the list item. If the sublist is a child of the parent list, the sublist does not inherit the formatting from the previous list item. See Format List Items in Multilevel Lists.
Version History
Introduced in R2014b