Click or drag to resize

CellCollection Class

Represents a collection of TableCell objects.
Inheritance Hierarchy

Namespace: Spire.Doc.Collections
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public class CellCollection : DocumentObjectCollection

The CellCollection type exposes the following members.

Constructors
Name Description
Public method CellCollection
Initializes a new instance of the CellCollection class.
Top
Properties
Name Description
Public property Count
Gets the number of items in the collection.
(Inherited from CollectionEx .)
Public property Document
Gets the document.
(Inherited from OwnerHolder .)
Public property FirstItem
Gets the first item.
(Inherited from DocumentObjectCollection .)
Public property Item
Gets the TableCell at the specified index.
Public property LastItem
Gets the last item.
(Inherited from DocumentObjectCollection .)
Protected property TypesOfElement (Overrides DocumentObjectCollection TypesOfElement .)
Top
Methods
Name Description
Public method Add(IDocumentObject)
Adds the specified entity.
(Inherited from DocumentObjectCollection .)
Public method Add(TableCell)
Adds the specified cell.
Public method Clear
Removes all items
(Inherited from DocumentObjectCollection .)
Public method Contains
Determines whether a entity is in the collection.
(Inherited from DocumentObjectCollection .)
Protected method CreateItem (Overrides DocumentSerializableCollection CreateItem(IXDLSContentReader) .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from CollectionEx .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Protected method GetTagItemName (Overrides DocumentSerializableCollection GetTagItemName .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method IndexOf(IDocumentObject)
Returns the zero-based index of the specified entity.
(Inherited from DocumentObjectCollection .)
Public method IndexOf(TableCell)
Returns index of a specified cell in collection.
Public method Insert(Int32, TableCell)
Inserts a specified table cell into collection.
Public method Insert(Int32, IDocumentObject)
Inserts a entity into the collection at the specified index.
(Inherited from DocumentObjectCollection .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method OnClear (Inherited from DocumentObjectCollection .)
Protected method OnInsert (Inherited from DocumentObjectCollection .)
Protected method OnInsertComplete (Inherited from DocumentObjectCollection .)
Protected method OnRemove(Int32) (Inherited from DocumentObjectCollection .)
Protected method OnRemove(DocumentObject) (Inherited from DocumentObjectCollection .)
Public method Remove(IDocumentObject)
Removes the document object from the collection.
(Inherited from DocumentObjectCollection .)
Public method Remove(TableCell)
Removes the specified cell.
Public method RemoveAt
Removes the document object at the specified index from the collection.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
Fields
Name Description
Protected field m_doc (Inherited from OwnerHolder .)
Top
See Also