ParagraphCollection

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.

מאפיינים

שםסוגגישהתיאור
paragraphsList<IParagraph>קראוהוא בונה ומחזיר את רשימת הפסוקים.
readOnlybooleanקראורק מקבל את הקריאה.
slideIBaseSlideקראומקבל את הסלילה.
presentationIPresentationקראוקבל את ההצגה.

שיטות

חתימהתיאור
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>מציעה איטרה מעל הפסוקים

ראה גם

 עברית