CellCollection

CellCollection

Overview

CellCollection is a class in Aspose.Slides FOSS for C++.

Represents a collection of table cells.

This class provides 36 methods for working with CellCollection objects in C++ programs. Available methods include: Cell, CellCollection, IBaseSlide, IPresentationComponent, ISlideComponent, add, as_i_collection, as_i_enumerable, as_i_presentation_component, as_i_slide_component, begin, clear, and 9 additional methods. All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package. Properties: Cell, IBaseSlide, IPresentationComponent, ISlideComponent, const_iterator, iterator.

Properties

NameTypeAccessDescription
CellCellReadGets the cell.
IBaseSlideIBaseSlideReadGets the i base slide.
ISlideComponentISlideComponentReadGets the i slide component.
IPresentationComponentIPresentationComponentReadGets the i presentation component.
iteratoriteratorReadGets the iterator.
const_iteratorconst_iteratorReadGets the const iterator.

Methods

SignatureDescription
Cell()CellProperty provides access to a Cell in the collection
Cell()Cell
Cell()Cell
Cell()Cell
IBaseSlide()IBaseSlideProperty provides access to the associated IBaseSlide
IBaseSlide()IBaseSlide
ISlideComponent()ISlideComponentProperty provides access to the related ISlideComponent
ISlideComponent()ISlideComponent
IPresentationComponent()IPresentationComponentProperty provides access to the linked IPresentationComponent
IPresentationComponent()IPresentationComponent
iterator()iteratorReturns an iterator to the collection’s first element
iterator()iterator
const_iterator()const_iteratorReturns a const iterator to the collection’s first element
const_iterator()const_iterator
CellCollection()
~CellCollection()
init_internal(cells: std::vector<std::unique_ptr<Cell>>, parent_slide: IBaseSlide)Initializes the collection with cells and parent slide context.
size()std::size_tReturns the number of cells.
add(cell: std::unique_ptr<Cell>)CellAdds a cell to the collection.
add()CellAdds a cell to the collection.
clear()Removes all cells.
slide()IBaseSlideReturns the parent slide of this CellCollection. Read-only.
slide()IBaseSlideReturns the parent slide of this CellCollection. Read-only.
set_slide(slide: IBaseSlide)Sets the parent slide.
presentation()IPresentationReturns the parent presentation of this CellCollection. Read-only.
presentation()IPresentationReturns the parent presentation of this CellCollection. Read-only.
as_i_slide_component()ISlideComponentAllows to get base ISlideComponent interface. Read-only.
as_i_slide_component()ISlideComponentAllows to get base ISlideComponent interface. Read-only.
as_i_presentation_component()IPresentationComponentAllows to get base IPresentationComponent interface. Read-only.
as_i_presentation_component()IPresentationComponentAllows to get base IPresentationComponent interface. Read-only.
as_i_collection()std::vector<Cell*>Returns a snapshot of the cells as raw pointers.
as_i_enumerable()std::vector<Cell*>Returns a snapshot of the cells as raw pointers (same as as_i_collection).
begin()iterator
end()iterator
begin()const_iterator
end()const_iterator

See Also