TextFragmentCollection

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

SignatureDescription
__init__()Calls init on this TextFragmentCollection instance.
add(fragment: Any)Add fragment to the collection; None is silently ignored.
remove(fragment: Any)boolRemove fragment from the collection.
clear()Remove all fragments from the collection.
contains(fragment: Any)boolReturn True if fragment is present in the collection.
item(index: int)AnyReturn the fragment at index (0-based).
get_enumerator()Iterator[Any]Return an iterator over the collection.

See Also