Method GetParentOfType
- Namespace
- MigraDoc.DocumentObjectModel
- Assembly
- MigraDoc.DocumentObjectModel.dll
GetParentOfType(DocumentObject?, Type)
Gets a parent of the document object with the given type somewhere within the document hierarchy. Returns null if none exists.
public static DocumentObject? GetParentOfType(DocumentObject? documentObject, Type type)
Parameters
documentObjectDocumentObjectThe document object the parent is searched for.
typeTypeThe parent type to search for.