CellCollection module

class CellCollection.CellCollection

Bases: DocumentObjectCollection

Represents a collection of TableCell objects.

Add(cell: TableCell) int

Adds the specified cell to the collection.

Parameters:

cell – The cell to add.

Returns:

The index at which the cell was added.

IndexOf(cell: TableCell) int

Returns the index of the specified cell in the collection.

Parameters:

cell – The cell to find the index of.

Returns:

The index of the cell in the collection.

Insert(index: int, cell: TableCell)

Inserts the specified table cell into the collection at the specified index.

Parameters:
  • index – The index at which to insert the cell.

  • cell – The cell to insert.

Remove(cell: TableCell)

Removes the specified cell from the collection.

Parameters:

cell – The cell to remove.

RemoveAt(index: int)

Removes the document object at the specified index from the collection.

Parameters:

index – The index of the document object to remove.

get_Item(index: int) TableCell

Retrieves the TableCell at the specified index.

Parameters:

index – The index of the TableCell to retrieve.

Returns:

The TableCell at the specified index.