Skip to content

hyperlink

Custom element classes related to hyperlinks (CT_Hyperlink).

Bases: BaseOxmlElement

<w:hyperlink> element, containing the text and address for a hyperlink.

lastRenderedPageBreaks property

lastRenderedPageBreaks: List[CT_LastRenderedPageBreak]

All w:lastRenderedPageBreak descendants of this hyperlink.

text property

text: str

The textual content of this hyperlink.

CT_Hyperlink stores the hyperlink-text as one or more w:r children, which may be wrapped in a content control or a revision mark; those are looked through the same way they are in a paragraph, so link text that Word marked as inserted is not silently dropped.