TextFragmentCollection
Overview
TextFragmentCollection is a class in Aspose.PDF FOSS for Python.
Collection of TextFragment objects.
This class provides 7 methods for working with TextFragmentCollection objects in Python programs.
Available methods include: __init__, add, clear, contains, get_enumerator, item, remove.
All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Methods
| Signature | Description |
|---|---|
__init__() | Calls init on this TextFragmentCollection instance. |
add(fragment: TextFragment) → TextFragmentCollection | Calls add(fragment) on this TextFragmentCollection instance. |
remove(fragment: TextFragment) | Calls remove(fragment) on this TextFragmentCollection instance. |
clear() | Calls clear on this TextFragmentCollection instance. |
contains(fragment: TextFragment) → bool | Calls contains(fragment) on this TextFragmentCollection instance. |
item(index: int) → TextFragment | Calls item(index) on this TextFragmentCollection instance. |
get_enumerator() | Returns the enumerator. |