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
documentObjectDocumentObjectThe document object to check.
typeTypeThe parent type to search for.
Returns
- bool