ListItem

Overview

ListItem is a class in Aspose.PDF FOSS for Python.

One item: what it says, what hangs under it, and how it differs.

This class declares 2 methods for ListItem objects in Python programs. Available methods include: __post_init__, add_item. Public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package. Properties: alignment, font_name, font_size, items, label, line_height, and 4 more.

Properties

NameTypeAccessDescription
textstrRead/WriteGets or sets the text.
itemslist[ListItem | str]Read/WriteGets or sets the items.
labelstr | NoneRead/WriteGets or sets the label.
alignmentstr | NoneRead/WriteGets or sets the alignment.
font_namestr | NoneRead/WriteGets or sets the font name.
font_sizefloat | NoneRead/WriteGets or sets the font size.
text_colorAnyRead/WriteGets or sets the text color.
line_heightfloat | NoneRead/WriteGets or sets the line height.
space_beforefloatRead/WriteGets or sets the space before.
space_afterfloatRead/WriteGets or sets the space after.

Methods

SignatureDescription
__post_init__()Calls post_init on this ListItem instance.
add_item(text: Any) → ListItemAppend a sub-item and return it.

See Also