PortionCollection
Overview
PortionCollection is a class in Aspose.Slides FOSS for C++.
Manages a collection of text portions within a paragraph.
This class provides 27 methods for working with PortionCollection objects in C++ programs.
Available methods include: ConstIterator, Iterator, PortionCollection, add, as_i_enumerable, begin, clear, contains, count, end, index_of, init_internal, and 7 additional methods.
All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package.
Properties: ConstIterator, Iterator, PortionCollection, pointer, reference.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
PortionCollection | PortionCollection | Read | Gets the portion collection. |
reference | reference | Read | Gets the reference. |
pointer | pointer | Read | Gets the pointer. |
Iterator | Iterator | Read | Gets the iterator. |
ConstIterator | ConstIterator | Read | Gets the const iterator. |
Methods
| Signature | Description |
|---|---|
PortionCollection() → PortionCollection | Property provides access to the collection itself |
reference() → reference | Returns a mutable reference to the underlying collection |
pointer() → pointer | Property provides a pointer to the underlying collection |
Iterator() → Iterator | Creates a new iterator positioned at the start of the collection |
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) | Initialize from XML, entering XML-backed mode. |
size() → std::size_t | Returns the number of portions. |
count() → std::size_t | Returns the number of portions (alias for size()). |
is_read_only() → bool | Returns whether the collection is read-only. |
add(portion: Portion) → Portion | Adds a portion to the end of the collection. |
index_of(item: Portion) → std::optional<std::size_t> | Returns the index of the given portion, or std::nullopt if not found. |
insert(index: std::size_t, portion: Portion) → Portion | Inserts a portion at the given index. |
clear() | Removes all portions. |
contains(item: Portion) → bool | Returns true if the collection contains the given portion. |
remove(item: Portion) → bool | Removes the given portion from the collection. |
remove_at(index: std::size_t) | Removes the portion at the given index. |
as_i_enumerable() → IPortionCollection | Returns a reference to this collection as a generic enumerable interface. |
as_i_enumerable() → IPortionCollection | Returns a reference to this collection as a generic enumerable interface. |
begin() → Iterator | Returns an iterator to the first portion |
end() → Iterator | Returns an iterator past the last portion |
begin() → ConstIterator | |
end() → ConstIterator |