com.aspose.slides
Class CellCollection

java.lang.Object
  extended by com.aspose.slides.CellCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.ICollection, com.aspose.ms.System.Collections.IEnumerable, ICellCollection, IPresentationComponent, ISlideComponent, java.lang.Iterable
Direct Known Subclasses:
Column, Row

public abstract class CellCollection
extends java.lang.Object
implements ICellCollection

Represents a collection of cells.


Method Summary
 void copyTo(com.aspose.ms.System.Array array, int index)
           Copies all elements from the collection to the specified array.
 ICell get_Item(int index)
           Returns a cell by it's position.
 IPresentation getPresentation()
           Returns the parent presentation of a CellCollection.
 IBaseSlide getSlide()
           Returns the parent slide of a CellCollection.
 java.lang.Object getSyncRoot()
           Returns a synchronization root.
 boolean isSynchronized()
           Returns a value indicating whether access to the collection is synchronized (thread-safe).
 com.aspose.ms.System.Collections.IEnumerator iterator()
           Returns an enumerator for all cells which top-left corner belongs to this collection.
 int size()
           Returns the number of cells in a collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get_Item

public 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.

Specified by:
get_Item in interface ICellCollection

size

public int size()

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

Specified by:
size in interface com.aspose.ms.System.Collections.ICollection

getSlide

public IBaseSlide getSlide()

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

Specified by:
getSlide in interface ISlideComponent

getPresentation

public IPresentation getPresentation()

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

Specified by:
getPresentation in interface IPresentationComponent

iterator

public com.aspose.ms.System.Collections.IEnumerator iterator()

Returns an enumerator for all cells which top-left corner belongs to this collection. Each cell returned only once.

Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable
Specified by:
iterator in interface java.lang.Iterable
Returns:
An IEnumerator for the collection.

copyTo

public void copyTo(com.aspose.ms.System.Array array,
                   int index)

Copies all elements from the collection to the specified array.

Specified by:
copyTo in interface com.aspose.ms.System.Collections.ICollection
Parameters:
array - Target array.
index - Starting index in the target array.

isSynchronized

public boolean isSynchronized()

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

Specified by:
isSynchronized in interface com.aspose.ms.System.Collections.ICollection

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

Specified by:
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection