Table of Contents

Method HasParentOfType

Namespace
MigraDoc.DocumentObjectModel
Assembly
MigraDoc.DocumentObjectModel.dll

HasParentOfType(DocumentObject, Type)

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

public static bool HasParentOfType(DocumentObject documentObject, Type type)

Parameters

documentObject DocumentObject

The document object to check.

type Type

The parent type to search for.

Returns

bool