Cells

Inheritance: java.lang.Object

All Implemented Interfaces: java.lang.Iterable

public final class Cells implements Iterable<Cell>

Represents a cells collection of row.

Constructors

ConstructorDescription
Cells()

Methods

MethodDescription
add()Add cell to collection.
add(String text, TextState ts)Add cell to collection.
add(String text)Add cell to collection.
add(Cell cell)Add cell to collection.
removeRange(int index, int count)Remove cell set from collection.
remove(Object obj)Remove cell set from collection.
remove(Cell cell)Remove cell set from collection.
insert(int index, Cell cell)Insert cell to collection.
iterator()Gets collection’s enumerator.
getCount()The items count.
get_Item(int index)Gets cell.
set_Item(int index, Cell value)Sets cells.

Cells()

public Cells()

add()

public Cell add()

Add cell to collection.

Returns: Cell - The new cell

add(String text, TextState ts)

public Cell add(String text, TextState ts)

Add cell to collection.

Parameters:

ParameterTypeDescription
textjava.lang.StringThe text for cell.
tsTextStateThe text state.

Returns: Cell - The new cell

add(String text)

public Cell add(String text)

Add cell to collection.

Parameters:

ParameterTypeDescription
textjava.lang.StringThe text for cell.

Returns: Cell - The new cell

add(Cell cell)

public void add(Cell cell)

Add cell to collection.

Parameters:

ParameterTypeDescription
cellCellThe cell to collection.

removeRange(int index, int count)

public void removeRange(int index, int count)

Remove cell set from collection.

Parameters:

ParameterTypeDescription
indexintThe collection index.
countintThe rows count.

remove(Object obj)

public void remove(Object obj)

Remove cell set from collection.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectThe object.

remove(Cell cell)

public void remove(Cell cell)

Remove cell set from collection.

Parameters:

ParameterTypeDescription
cellCellThe cell object.

insert(int index, Cell cell)

public void insert(int index, Cell cell)

Insert cell to collection.

Parameters:

ParameterTypeDescription
indexintThe selected index.
cellCellThe selected cell.

iterator()

public Iterator<Cell> iterator()

Gets collection’s enumerator.

Returns: java.util.Iterator<com.aspose.pdf.Cell> - Iterator of Cell instances

getCount()

public int getCount()

The items count.

Returns: int - int value

get_Item(int index)

public Cell get_Item(int index)

Gets cell.

Parameters:

ParameterTypeDescription
indexintThe cell index.

Returns: Cell - Cell object

set_Item(int index, Cell value)

public void set_Item(int index, Cell value)

Sets cells.

Parameters:

ParameterTypeDescription
indexintThe cell index.
valueCellThe cells value