ParagraphCollection
Overview
ParagraphCollection is a class in Aspose.Slides FOSS for C++.
Manages a collection of paragraphs within a text frame.
This class provides 35 methods for working with ParagraphCollection objects in C++ programs.
Available methods include: ConstIterator, Iterator, ParagraphCollection, add, as_i_enumerable, as_i_presentation_component, as_i_slide_component, begin, clear, contains, end, index_of, and 11 additional methods.
All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package.
Properties: ConstIterator, Iterator, ParagraphCollection, pointer, reference.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ParagraphCollection | ParagraphCollection | Read | Gets the paragraph 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 |
|---|---|
ParagraphCollection() → ParagraphCollection | Property represents the collection instance itself |
reference() → reference | Property provides reference access to the collection |
pointer() → pointer | |
Iterator() → Iterator | Property denotes the iterator type used by the collection |
Iterator() → Iterator | |
reference() → reference | |
pointer() → pointer | |
ConstIterator() → ConstIterator | |
ConstIterator() → ConstIterator | |
ParagraphCollection() | |
init_internal(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 paragraphs. |
add(paragraph: Paragraph) → Paragraph | Adds a paragraph to the end of the collection. |
insert(index: std::size_t, paragraph: Paragraph) → Paragraph | Inserts a paragraph at the given index. |
remove_at(index: std::size_t) | Removes the paragraph at the given index. |
remove(item: Paragraph) → bool | Removes the given paragraph from the collection. |
clear() | Removes all paragraphs. |
is_read_only() → bool | Returns whether the collection is read-only (always false). |
index_of(item: Paragraph) → std::optional<std::size_t> | Returns the index of the given paragraph, or std::nullopt if not found. |
contains(item: Paragraph) → bool | Returns whether the collection contains the given paragraph. |
as_i_slide_component() → ISlideComponent | Allows to get base ISlideComponent interface. Read-only. |
as_i_slide_component() → ISlideComponent | Allows to get base ISlideComponent interface. Read-only. |
as_i_enumerable() → IParagraphCollection | Returns a reference to this collection as a generic enumerable interface. |
as_i_enumerable() → IParagraphCollection | Returns a reference to this collection as a generic enumerable interface. |
slide() → IBaseSlide | |
slide() → IBaseSlide | |
as_i_presentation_component() → IPresentationComponent | |
as_i_presentation_component() → IPresentationComponent | |
presentation() → IPresentation | |
presentation() → IPresentation | |
set_slide(slide: IBaseSlide) | Sets the parent slide for this collection. |
begin() → Iterator | Returns an iterator to the first paragraph |
end() → Iterator | Returns an iterator past the last paragraph |
begin() → ConstIterator | |
end() → ConstIterator |