Click or drag to resize

DocumentObjectCollection Class

Represents a collection of DLS entities.
Inheritance Hierarchy

Namespace: Spire.Doc.Collections
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public abstract class DocumentObjectCollection : DocumentSerializableCollection, 
	IDocumentObjectCollection, ICollectionBase, IEnumerable

The DocumentObjectCollection type exposes the following members.

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.
Public property Item
Gets the DocumentObject at the specified index.
Public property LastItem
Gets the last item.
Protected property TypesOfElement
Top
Methods
Name Description
Public method Add
Adds the specified entity.
Public method Clear
Removes all items
Public method Contains
Determines whether a entity is in the collection.
Protected method CreateItem (Inherited from DocumentSerializableCollection .)
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 (Inherited from DocumentSerializableCollection .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method IndexOf
Returns the zero-based index of the specified entity.
Public method Insert
Inserts a entity into the collection at the specified index.
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method OnClear
Protected method OnInsert
Protected method OnInsertComplete
Protected method OnRemove(Int32)
Protected method OnRemove(DocumentObject)
Public method Remove
Removes the document object from the collection.
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
Inheritance Hierarchy