TextFragmentCollection
Overview
TextFragmentCollection is a class in Aspose.PDF FOSS for Python.
A mutable ordered collection of :class: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: Any) | Add fragment to the collection; None is silently ignored. |
remove(fragment: Any) → bool | Remove fragment from the collection. |
clear() | Remove all fragments from the collection. |
contains(fragment: Any) → bool | Return True if fragment is present in the collection. |
item(index: int) → Any | Return the fragment at index (0-based). |
get_enumerator() → Iterator[Any] | Return an iterator over the collection. |