Table of Contents

Class DocumentObject

Namespace
MigraDoc.DocumentObjectModel
Assembly
MigraDoc.DocumentObjectModel.dll

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

public abstract class DocumentObject
Inheritance
object
DocumentObject
Derived
Extension Methods

Properties

Document

Gets the document of the object, or null if the object is not associated with a document.

Section

Gets the section of the object, or null if the object is not associated with a section.

Tag

Gets or sets a value that contains arbitrary information about this object.

Methods

Clone()

Creates a deep copy of the DocumentObject. The parent of the new object is null.

CreateValue(string)

Creates an object using the default constructor.

DeepCopy()

Implements the deep copy of the object.

GetValue(string, GV)

Returns the value with the specified name and optional value flags.

HasValue(string)

Determines whether this instance has a value of the given name.

IsNull()

Determines whether this instance is null (not set).

IsNull(string)

Determines whether the value of the given name is null.

SetNull()

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

SetNull(string)

Resets the value of the given name, i.e. IsNull(name) will return true afterward.

SetParentOf(DocumentObject?)

Sets the parent of the specified value. If a parent is already set, an ArgumentException will be thrown.

SetValue(string, object?)

Sets the given value and sets its parent afterward.