TextList
Overview
TextList is a class in Aspose.PDF FOSS for Python.
Items ready to be placed on a page, with the styles they share.
This class declares 7 methods for TextList objects in Python programs.
Available methods include: __post_init__, add_item, any_text, label_for, marker_for, numbering_attribute, numbering_for.
Public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: alignment, font, font_name, font_size, indent, is_empty, and 13 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
is_empty | bool | Read | Whether there is nothing here that would put a mark on a page. |
items | Any | Read/Write | Gets or sets the items. |
ordered | bool | Read/Write | Gets or sets the ordered. |
markers | Any | Read/Write | Gets or sets the markers. |
numbering | Any | Read/Write | Gets or sets the numbering. |
number_format | str | Read/Write | Gets or sets the number format. |
start | int | Read/Write | Gets or sets the start. |
indent | float | Read/Write | Gets or sets the indent. |
label_gap | float | Read/Write | Gets or sets the label gap. |
label_width | float | None | Read/Write | Gets or sets the label width. |
label_alignment | str | Read/Write | Gets or sets the label alignment. |
width | float | None | Read/Write | Gets or sets the width. |
font_name | str | Read/Write | Gets or sets the font name. |
font_size | float | Read/Write | Gets or sets the font size. |
font | Any | Read/Write | Gets or sets the font. |
text_color | Any | Read/Write | Gets or sets the text color. |
alignment | str | Read/Write | Gets or sets the alignment. |
line_height | float | None | Read/Write | Gets or sets the line height. |
item_gap | float | Read/Write | Gets or sets the item gap. |
Methods
| Signature | Description |
|---|---|
__post_init__() | Calls post_init on this TextList instance. |
add_item(text: Any) → ListItem | Append an item and return it. |
marker_for(depth: int) → str | The bullet for depth, cycling through :attr:markers. |
numbering_for(depth: int) → str | The numbering style for depth, cycling through :attr:numbering. |
label_for(depth: int, position: int) → str | The marker an item at depth in position (counting from 1) gets. |
numbering_attribute(depth: int) → str | None | /ListNumbering for depth: what the markers mean, as a name. |
any_text(items: Sequence[ListItem]) → bool | Calls any_text(items) on this TextList instance. |