TextFragmentCollection

TextFragmentCollection

概述

TextFragmentCollection 是 Aspose.PDF FOSS 中用于 Python 的一个类。

TextFragment 对象的集合。

此类提供 7 种方法,用于在 Python 程序中处理 TextFragmentCollection 对象。可用的方法包括:__init__、add、clear、contains、get_enumerator、item、remove。在安装了面向 Python 的 Aspose.PDF FOSS 包之后,所有公共成员对任何 Python 应用程序均可访问。

方法

签名描述
__init__()Calls init 在此 TextFragmentCollection 实例上。
add(fragment: TextFragment) → TextFragmentCollection在此 TextFragmentCollection 实例上调用 add(fragment)。
remove(fragment: TextFragment)在此 TextFragmentCollection 实例上调用 remove(fragment)。
clear()在此 TextFragmentCollection 实例上调用 clear。
contains(fragment: TextFragment) → bool在此 TextFragmentCollection 实例上调用 contains(fragment)。
item(index: int) → TextFragment在此 TextFragmentCollection 实例上调用 item(index)。
get_enumerator()返回枚举器。

另请参阅

 中文