ShapeCollection

ShapeCollection — Aspose.Slides FOSS C++ API Reference

ShapeCollection — Manages the collection of shapes on a slide.

Package: Aspose::Slides


Properties

PropertyTypeAccessDescription
ShapeCollectionShapeCollectionRead
TableTableRead

Methods

MethodReturnsDescription
ShapeCollection()ShapeCollection
Table()Table
Table()Table
init_internal()voidInitialize from a slide part, entering XML-backed mode.
size()std::size_tReturns the number of shapes.
to_array()std::vector<Shape*>Returns all shapes as non-owning pointers.
to_array()std::vector<Shape*>Returns all shapes as non-owning pointers.
reorder()voidMoves a shape to the specified position (z-order).
reorder()voidMoves a shape to the specified position (z-order).
index_of()std::ptrdiff_tReturns the zero-based index of a shape, or -1 if not found.
remove()voidRemoves a shape from the collection by reference.
remove_at()voidRemoves the shape at the given index.
clear()voidRemoves all shapes.
begin()iterator
end()iterator
begin()const_iterator
end()const_iterator
get_sp_tree()pugi::xml_nodeGet the spTree element from the slide XML.
load_shapes()voidLoad all shapes from the XML, populating the internal cache.
invalidate_cache()voidInvalidate the shapes cache, forcing a reload on next access.
save_to_part()voidSave changes to the slide part.
next_shape_id()intFind the next available shape ID in the spTree.
build_auto_shape_xml()voidBuild XML content for a new AutoShape element.
build_connector_xml()voidBuild XML content for a new connector (cxnSp) element.
reorder_single()voidReorder a single shape to a new position in XML and cache.

See Also