Click or drag to resize

SectionCollection Class

Represents a collection of Section .
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 SectionCollection : DocumentObjectCollection, 
	IWSectionCollection, IDocumentObjectCollection, ICollectionBase, IEnumerable

The SectionCollection type exposes the following members.

Constructors
Name Description
Public method SectionCollection
Initializes a new instance of the SectionCollection 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 Section 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(ISection)
Adds a section to end of document.
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(ISection)
Returns the zero-based index of the specified section.
Public method Insert
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) (Overrides DocumentObjectCollection OnRemove(Int32) .)
Protected method OnRemove(DocumentObject) (Overrides DocumentObjectCollection OnRemove(DocumentObject) .)
Public method Remove
Removes the document object from the collection.
(Inherited from DocumentObjectCollection .)
Public method RemoveAt
Removes the document object at the specified index from the collection.
(Inherited from DocumentObjectCollection .)
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