CellCollection

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.ICellCollection, com.aspose.slides.IDOMObject

public abstract class CellCollection implements ICellCollection, IDOMObject

Represents a collection of cells.

Methods

MethodDescription
getParent_Immediate()
size()Returns the number of cells in a collection.
get_Item(int index)Returns a cell by it’s position.
iterator()Returns an enumerator that iterates through the collection.
iteratorJava()Returns a java iterator for the entire collection.
getSlide()Returns the parent slide of a CellCollection.
getPresentation()Returns the parent presentation of a CellCollection.
copyTo(System.Array array, int index)Copies all elements from the collection to the specified array.
isSynchronized()Returns a value indicating whether access to the collection is synchronized (thread-safe).
getSyncRoot()Returns a synchronization root.

getParent_Immediate()

public final IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.

Returns: com.aspose.slides.IDOMObject

size()

public final int size()

Returns the number of cells in a collection. Read-only int.

Returns: int

get_Item(int index)

public final ICell get_Item(int index)

Returns a cell by it’s position. Read-only Cell.


One Cell object can be returned for several indexes in case cell is merged.

Parameters:

ParameterTypeDescription
indexint

Returns: ICell

iterator()

public final System.Collections.Generic.IGenericEnumerator<ICell> iterator()

Returns an enumerator that iterates through the collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.ICell> - A IGenericEnumerator that can be used to iterate through the collection.

iteratorJava()

public final System.Collections.Generic.IGenericEnumerator<ICell> iteratorJava()

Returns a java iterator for the entire collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.ICell> - An java.util.Iterator for the entire collection.

getSlide()

public final IBaseSlide getSlide()

Returns the parent slide of a CellCollection. Read-only IBaseSlide.

Returns: IBaseSlide

getPresentation()

public final IPresentation getPresentation()

Returns the parent presentation of a CellCollection. Read-only IPresentation.

Returns: IPresentation

copyTo(System.Array array, int index)

public final void copyTo(System.Array array, int index)

Copies all elements from the collection to the specified array.

Parameters:

ParameterTypeDescription
arraycom.aspose.ms.System.ArrayTarget array.
indexintStarting index in the target array.

isSynchronized()

public final boolean isSynchronized()

Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

Returns: boolean

getSyncRoot()

public final Object getSyncRoot()

Returns a synchronization root. Read-only Object.

Returns: java.lang.Object