ParagraphCollection
סקירה כללית
ParagraphCollection הוא שיעור ב Aspose.Slides FOSS עבור Java. מורשת מ : BaseCollection<IParagraph>, IParagraphCollection, ISlideComponent.
הוא מייצג אוסף של פרקים.
שיעור זה מספק 21 שיטות לעבוד עם אובייקטים ParagraphCollection בתוכניות Java. שיטות זמינות כוללות: ParagraphCollection, add, asIEnumerable, asIPresentationComponent, asISlideComponent, clear, contains, count, get, getParagraphs, getPresentation, getSlide,8 שיטות נוספות. כל החברים הציבוריים זמינים לכל יישום Java לאחר התקנת Aspose.Slides FOSS עבור חבילת Java. רכוש : paragraphs, presentation, readOnly, slide.
נכסים
| שם | סוג | גישה | תיאור |
|---|---|---|---|
paragraphs | List<IParagraph> | קראו | הוא בונה ומחזיר את רשימת הפסוקים. |
readOnly | boolean | קראו | רק מקבל את הקריאה. |
slide | IBaseSlide | קראו | מקבל את הסלילה. |
presentation | IPresentation | קראו | קבל את ההצגה. |
שיטות
| חתימה | תיאור |
|---|---|
ParagraphCollection() | יצירת שקיעה ריקה. |
ParagraphCollection(paragraphs: List<IParagraph>) | יצירת ParagraphCollection עם הפסוקים הראשוניים שניתנו. |
initInternal(txbodyElement: Element, slidePart: Object, parentSlide: IBaseSlide) → ParagraphCollection | מתחיל את הקולקציה הזו מתוך אלמנט גוף טקסט OOXML. |
getParagraphs() → List<IParagraph> | הוא בונה ומחזיר את רשימת הפסוקים. |
get(index: int) → IParagraph | |
size() → int | |
count() → int | החזיר את מספר הפסוקים (אלאי של גודל) |
isReadOnly() → boolean | זה חוזר אם רק קריאה מוגדרת. |
asISlideComponent() → ISlideComponent | החזיר את הקולקציה כ ISlideComponent |
asIEnumerable() → Iterable<IParagraph> | החזיר את התנאים מעל הפסוקים |
asIPresentationComponent() → IPresentationComponent | החזיר את הקולקציה כ IPresentationComponent |
getSlide() → IBaseSlide | חזר את הסלילה. |
getPresentation() → IPresentation | חזר את ההצגה. |
add(value: IParagraph) | הוספת סעיף לסוף האוסף |
insert(index: int, value: IParagraph) | |
indexOf(item: IParagraph) → int | החזיר את האינדקס של הנקודה או -1 אם לא קיים. |
contains(item: IParagraph) → boolean | החזר תקין אם הקולקציה כוללת את הסעיף המפורט |
clear() | |
removeAt(index: int) | הסרת הפסקה ב- אינדיקטור נתון |
remove(item: IParagraph) → boolean | הסרת הפסקה המפורטת ומחזירה את מצב ההצלחה |
iterator() → Iterator<IParagraph> | מציעה איטרה מעל הפסוקים |