TextFragmentCollection

TextFragmentCollection

ภาพรวม

TextFragmentCollection เป็นคลาสใน Aspose.PDF FOSS สำหรับ Python.

คอลเลกชันของอ็อบเจกต์ TextFragment.

คลาสนี้ให้ 7 เมธอดสำหรับทำงานกับอ็อบเจกต์ TextFragmentCollection ในโปรแกรม Python. เมธอดที่มีให้รวมถึง: __init__, add, clear, contains, get_enumerator, item, remove. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้โดยแอปพลิเคชัน Python ใด ๆ หลังจากติดตั้งแพ็กเกจ Aspose.PDF FOSS สำหรับ Python.

วิธีการ

ลายเซ็นคำอธิบาย
__init__()Calls init บนอินสแตนซ์ TextFragmentCollection นี้.
add(fragment: TextFragment) → TextFragmentCollectionเรียกใช้ add(fragment) บนอินสแตนซ์ TextFragmentCollection นี้.
remove(fragment: TextFragment)เรียกใช้ remove(fragment) บนอินสแตนซ์ TextFragmentCollection นี้.
clear()เรียกใช้ clear บนอินสแตนซ์ TextFragmentCollection นี้.
contains(fragment: TextFragment) → boolเรียก contains(fragment) บนอินสแตนซ์ TextFragmentCollection นี้.
item(index: int) → TextFragmentเรียก item(index) บนอินสแตนซ์ TextFragmentCollection นี้.
get_enumerator()คืนค่า enumerator.

ดูเพิ่มเติม

 ภาษาไทย