Table of Contents

Class DocumentObjectCollection

Namespace
MigraDoc.DocumentObjectModel
Assembly
MigraDoc.DocumentObjectModel.dll

Base class of all collections of the MigraDoc Document Object Model.

public abstract class DocumentObjectCollection : DocumentObject
Inheritance
object
DocumentObjectCollection
Derived
Inherited Members
Extension Methods

Properties

Count

Gets the number of elements contained in the collection.

First

Gets the first value in the Collection, if there is any, otherwise null.

this[int]

Gets or sets the element at the specified index.

LastObject

Gets the last element, or null if no such element exists.

Methods

Add(DocumentObject?)

Inserts the object into the collection and sets its parent.

Clear()

Removes all elements from the collection.

Clone()

Creates a deep copy of this object.

CopyTo(DocumentObject?[], int)

Copies the entire collection to a compatible one-dimensional System.Array, starting at the specified index of the target array.

DeepCopy()

Implements the deep copy of the object.

GetEnumerator()

Returns an enumerator that can iterate through this collection.

IndexOf(DocumentObject?)

Determines the index of a specific item in the collection.

InsertObject(int, DocumentObject)

Inserts an object at the specified index.

IsNull()

Determines whether this instance is null (not set).

IsNull(string)

Determines whether the value of the given name is null.

RemoveObjectAt(int)

Removes the element at the specified index.

SetNull()

Resets this instance, i.e. IsNull() will return true afterward.