ParagraphCollection

ParagraphCollection

General

ParagraphCollection és una classe en Aspose.Slides FOSS per a C++.

Gestiona una col·lecció de paràgrafs dins d’un marc de text.

Propietats

NameTypeAccessDescription
ParagraphCollectionParagraphCollectionReadConstructs an empty ParagraphCollection
referencereferenceReadProperty provides a reference to the collection
pointerpointerRead
IteratorIteratorReadProperty denotes the iterator type for the collection
ConstIteratorConstIteratorReadCreates a const iterator for the collection

Mètodes

SignatureDescription
ParagraphCollection() → ParagraphCollectionConstructs an empty ParagraphCollection
reference() → referenceProperty provides a reference to the collection
pointer() → pointer
Iterator() → IteratorProperty denotes the iterator type for the collection
Iterator() → Iterator
reference() → reference
pointer() → pointer
ConstIterator() → ConstIteratorCreates a const iterator for the collection
ConstIterator() → ConstIterator
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_tReturns the number of paragraphs.
remove_at(index: std::size_t)Removes the paragraph at the given index.
remove(item: Paragraph) → boolRemoves the given paragraph from the collection.
clear()Removes all paragraphs.
is_read_only() → boolReturns 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) → boolReturns whether the collection contains the given paragraph.
set_slide(slide: IBaseSlide)Sets the parent slide for this collection.
begin() → IteratorReturns an iterator to the first paragraph
end() → IteratorReturns an iterator past the last paragraph
begin() → ConstIterator
end() → ConstIterator
 Català