Table of Contents

Class DocumentRelations

Namespace
MigraDoc.DocumentObjectModel
Assembly
MigraDoc.DocumentObjectModel.dll

Provides relational information between document objects.

public class DocumentRelations
Inheritance
object
DocumentRelations

Methods

GetParent(DocumentObject?)

Gets the direct parent of the given document object.

GetParentOfType(DocumentObject?, Type)

Gets a parent of the document object with the given type somewhere within the document hierarchy. Returns null if none exists.

HasParentOfType(DocumentObject, Type)

Determines whether the specified documentObject has a parent of the given type somewhere within the document hierarchy.