Click or drag to resize

ParagraphCollection Class

Represents a collection of [!:Spire.Doc.IParagraph] objects.
Inheritance Hierarchy
System Object
Spire.Doc OwnerHolder
Spire.Doc.Collections DocumentSubsetCollection
Spire.Doc.Collections ParagraphCollection

Namespace: Spire.Doc.Collections
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public class ParagraphCollection : DocumentSubsetCollection, 
	IParagraphCollection, IDocumentObjectCollection, ICollectionBase, IEnumerable

The ParagraphCollection type exposes the following members.

Constructors
Name Description
Public method ParagraphCollection
Initializes a new instance of the ParagraphCollection class.
Top
Properties
Name Description
Public property Count
Gets the count.
(Inherited from DocumentSubsetCollection .)
Public property Document
Gets the document.
(Inherited from DocumentSubsetCollection .)
Public property Item
Gets the [!:Spire.Doc.IParagraph] at the specified index.
Public property Owner
Gets the owner.
(Inherited from DocumentSubsetCollection .)
Top
Methods
Name Description
Public method Add
Adds a paragraph to end of text body.
Public method Clear
Removes all entities
(Inherited from DocumentSubsetCollection .)
Public method Contains
Determines whether the [!:Spire.Doc.IParagraphCollection] contains a specific value.
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 .)
Protected method GetByIndex (Inherited from DocumentSubsetCollection .)
Public method GetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from DocumentSubsetCollection .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method IndexOf
Returns the zero-based index of the specified paragraph.
Public method Insert
Inserts a paragraph into collection at the specified index.
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Public method Remove
Removes the specified paragraph.
Public method RemoveAt
Removes the paragraph 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