TextFragmentCollection
TextFragmentCollection
סקירה כללית
TextFragmentCollection היא מחלקה ב-Aspose.PDF FOSS עבור Python.
אוסף מסודר ניתן לשינוי של עצמים מסוג :class:TextFragment.
מחלקה זו מספקת 7 שיטות לעבודה עם עצמים TextFragmentCollection בתוכניות Python. השיטות הזמינות כוללות: __init__, add, clear, contains, get_enumerator, item, remove. כל החברים הציבוריים נגישים לכל יישום Python לאחר התקנת חבילת Aspose.PDF FOSS עבור Python.
שיטות
| חתימה | תיאור |
|---|---|
__init__() | Calls init במופע TextFragmentCollection זה. |
add(fragment: Any) | הוסף fragment לאוסף; None מתעלם בשקט. |
remove(fragment: Any) → bool | Remove fragment מהאוסף. |
clear() | הסר את כל החלקים מהאוסף. |
contains(fragment: Any) → bool | Return True if fragment קיים באוסף. |
item(index: int) → Any | החזר את הקטע ב index (מתחיל מאפס). |
get_enumerator() → Iterator[Any] | החזר איטרטור על האוסף. |