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
| Name | Type | Access | Description |
|---|---|---|---|
text | str | Read/Write | Gets or sets the text. |
items | list[ListItem | str] | Read/Write | Gets or sets the items. |
label | str | None | Read/Write | Gets or sets the label. |
alignment | str | None | Read/Write | Gets or sets the alignment. |
font_name | str | None | Read/Write | Gets or sets the font name. |
font_size | float | None | Read/Write | Gets or sets the font size. |
text_color | Any | Read/Write | Gets or sets the text color. |
line_height | float | None | Read/Write | Gets or sets the line height. |
space_before | float | Read/Write | Gets or sets the space before. |
space_after | float | Read/Write | Gets or sets the space after. |
Methods
| Signature | Description |
|---|---|
__post_init__() | Calls post_init on this ListItem instance. |
add_item(text: Any) → ListItem | Append a sub-item and return it. |