PortionCollection

Vue d’ensemble

‘Portium’ est une classe dans Aspose.Slides FOSS pour C++.

Gère une collection de portions de texte au sein d’un paragraphe.

Cette classe fournit 27 méthodes pour travailler avec des objets de PortionCollection dans les programmes C++. Les méthodologies disponibles comprennent: ‘ConstIterator’, ‘Itera’ , ‘Portion Collection’, add', ‘as_i_enumerable', ’begin’, 'clear', ‚contains, ‘count,end et 7 méthode supplémentaires. Tous les membres publics sont accessibles à toute application C ++ après l'installation du package C+. Propriétés : 'Conte Iterateur', ''Itherator ; ‘PortiumCollections’,‘‘pointer`; ‘reference’.

Propriétés

NameTypeAccessDescription
PortionCollectionPortionCollectionReadGets the portion collection.
referencereferenceReadGets the reference.
pointerpointerReadGets the pointer.
IteratorIteratorReadGets the iterator.
ConstIteratorConstIteratorReadGets the const iterator.

méthodes

SignatureDescription
PortionCollection() → PortionCollectionProperty provides access to the collection itself
reference() → referenceReturns a mutable reference to the underlying collection
pointer() → pointerProperty provides a pointer to the underlying collection
Iterator() → IteratorCreates 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_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.
add(portion: Portion) → PortionAdds 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) → PortionInserts a portion at the given index.
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.
as_i_enumerable() → IPortionCollectionReturns a reference to this collection as a generic enumerable interface.
as_i_enumerable() → IPortionCollectionReturns a reference to this collection as a generic enumerable interface.
begin() → IteratorReturns an iterator to the first portion
end() → IteratorReturns an iterator past the last portion
begin() → ConstIterator
end() → ConstIterator

Voir aussi

  • Aspose.Slides - référence API d’entreprise
 Français