public readonly property isHeading as Boolean
Indicates whether this paragraph is formatted as a heading.
if p.isHeading: print("Section: " + p.text)