PortionCollection

PortionCollection

General

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

Gestiona una col·lecció de parts de text dins d’un paràgraf.

Propietats

NameTypeAccessDescription
PortionCollectionPortionCollectionReadProperty returns the collection itself
referencereferenceReadReturns a reference to this collection
pointerpointerReadProperty provides a pointer to the collection
IteratorIteratorReadProperty represents the iterator type for the collection
ConstIteratorConstIteratorReadCreates a const iterator for read‑only traversal

Mètodes

SignatureDescription
PortionCollection() → PortionCollectionProperty returns the collection itself
reference() → referenceReturns a reference to this collection
pointer() → pointerProperty provides a pointer to the collection
Iterator() → IteratorProperty represents the iterator type for the collection
Iterator() → Iterator
reference() → reference
pointer() → pointer
ConstIterator() → ConstIteratorCreates a const iterator for read‑only traversal
ConstIterator() → ConstIterator
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_tReturns the number of portions.
count() → std::size_tReturns the number of portions (alias for size()).
is_read_only() → boolReturns whether the collection is read-only.
index_of(item: Portion) → std::optional<std::size_t>Returns the index of the given portion, or std::nullopt if not found.
clear()Removes all portions.
contains(item: Portion) → boolReturns true if the collection contains the given portion.
remove(item: Portion) → boolRemoves the given portion from the collection.
remove_at(index: std::size_t)Removes the portion at the given index.
begin() → IteratorReturns a const iterator to the first portion
end() → IteratorReturns a const iterator past the last portion
begin() → ConstIterator
end() → ConstIterator
 Català