CellCollection

CellCollection

Overview

CellCollection is a class in Aspose.Words FOSS for .NET. Inherits from: NodeCollection.

Provides typed access to a collection of Cell nodes.

This class provides 9 methods for working with CellCollection objects in .NET programs. Available methods include: Add, Clear, Contains, GetEnumerator, IndexOf, Insert, Remove, RemoveAt, ToArray. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: Count.

Properties

NameTypeAccessDescription
CountintReadGets the number of nodes in the collection.

Methods

SignatureDescription
ToArray()Copies all cells from the collection to a new array of cells.
Add(node: Node)Adds a node to the end of the collection.
Insert(index: int, node: Node)Inserts a node into the collection at the specified index.
Remove(node: Node)Removes the node from the collection and from the document.
RemoveAt(index: int)Removes the node at the specified index from the collection and from the document.
Clear()Removes all nodes from this collection and from the document.
Contains(node: Node)Determines whether a node is in the collection.
IndexOf(node: Node)Returns the zero-based index of the specified node.
GetEnumerator()Provides a simple “foreach” style iteration over the collection of nodes.

See Also