Method GetParentFont
- Namespace
- MigraDoc.DocumentObjectModel.Visitors
- Assembly
- MigraDoc.DocumentObjectModel.dll
GetParentFont(DocumentObject)
Get the font for the parent of a given object.
protected Font? GetParentFont(DocumentObject obj)
Parameters
objDocumentObjectThe object to start with.
Returns
Exceptions
- InvalidOperationException
Exception that is thrown of the parent object is neither Paragraph nor Hyperlink or FormattedText.