PortionCollection
סקירה כללית
PortionCollection הוא שיעור ב Aspose.Slides FOSS עבור C++.
ניהול אוסף של חלקים טקסט בתוך פרק אחד.
שיעור זה מספק 27 שיטות לעבוד עם אובייקטים PortionCollection בתוכניות C++. שיטות זמינות כוללות: ConstIterator, Iterator, PortionCollection, add, as_i_enumerable, begin, clear, contains, count, end, index_of, init_internal,7 שיטות נוספות. כל החברים הציבוריים זמינים לכל יישום C++ לאחר התקנת Aspose.Slides FOSS עבור חבילת C+. רכוש : ConstIterator, Iterator, PortionCollection, pointer, reference.
נכסים
| שם | סוג | גישה | תיאור |
|---|---|---|---|
PortionCollection | PortionCollection | קראו | קבלו את האוסף של החלקים. |
reference | reference | קראו | מקבל את ההערה. |
pointer | pointer | קראו | מקבל את המדריך. |
Iterator | Iterator | קראו | תנו את האיטראטור. |
ConstIterator | ConstIterator | קראו | מקבל את היתור המערבי. |
שיטות
| חתימה | תיאור |
|---|---|
PortionCollection() → PortionCollection | הנכס מספק גישה לאוסף עצמו |
reference() → reference | החזיר רמז משתנה לאוסף הבסיס |
pointer() → pointer | הנכס מספק נקודת מבט לאוסף הבסיס |
Iterator() → Iterator | יצירת איטרה חדשה המיועדת בתחילת הקולקציה |
Iterator() → Iterator | |
reference() → reference | |
pointer() → pointer | |
ConstIterator() → ConstIterator | |
ConstIterator() → ConstIterator | |
PortionCollection() | |
init_internal(p_element: pugi::xml_node, txbody_element: pugi::xml_node, slide_part: Internal::pptx::SlidePart, parent_slide: IBaseSlide) | התחל מה-XML, כניסת מצב תומך XML. |
size() → std::size_t | החזיר את מספר המנות. |
count() → std::size_t | החזיר את מספר המנות (למשל לפי גודל()). |
is_read_only() → bool | חזר אם הקולקציה נכתבה רק. |
add(portion: Portion) → Portion | הוסף חלק עד סוף הקולקציה. |
index_of(item: Portion) → std::optional<std::size_t> | החזיר את האינדקס של המירוץ, או std::nullopt אם לא נמצא. |
insert(index: std::size_t, portion: Portion) → Portion | להוסיף חלק מהאינדקס. |
clear() | להסיר את כל החלקים. |
contains(item: Portion) → bool | החזר נכון אם הקולקציה מכילה את המינון שניתן. |
remove(item: Portion) → bool | מורידים את החלק המוצע מהאוסף. |
remove_at(index: std::size_t) | מורידים את החלק מהאינדקס. |
as_i_enumerable() → IPortionCollection | החזיר התייחסות לאוסף זה כאינטראקציה כללית. |
as_i_enumerable() → IPortionCollection | החזיר התייחסות לאוסף זה כאינטראקציה כללית. |
begin() → Iterator | החזיר את האיטראטור לחלק הראשון. |
end() → Iterator | החזיר את האיטראטור מעבר לחלק האחרון |
begin() → ConstIterator | |
end() → ConstIterator |