TextFragmentCollection

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

SignatureDescription
__init__()Calls init on this TextFragmentCollection instance.
add(fragment: TextFragment)TextFragmentCollectionCalls 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)boolCalls contains(fragment) on this TextFragmentCollection instance.
item(index: int)TextFragmentCalls item(index) on this TextFragmentCollection instance.
get_enumerator()Returns the enumerator.

See Also