Table of Contents

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

obj DocumentObject

The object to start with.

Returns

Font

Exceptions

InvalidOperationException

Exception that is thrown of the parent object is neither Paragraph nor Hyperlink or FormattedText.