Method
__init__
(
self,
xPr: CT_NonVisualDrawingProps | CT_TextCharacterProperties,
parent: BaseShape,
hover: bool = False,
)
Source from the content-addressed store, hash-verified
| 194 | """Represents a hyperlink action on a shape or text run.""" |
| 195 | |
| 196 | def __init__( |
| 197 | self, |
| 198 | xPr: CT_NonVisualDrawingProps | CT_TextCharacterProperties, |
| 199 | parent: BaseShape, |
| 200 | hover: bool = False, |
| 201 | ): |
| 202 | super(Hyperlink, self).__init__(parent) |
| 203 | # xPr is either a cNvPr or rPr element |
| 204 | self._element = xPr |
| 205 | # _hover determines use of `a:hlinkClick` or `a:hlinkHover` |
| 206 | self._hover = hover |
| 207 | |
| 208 | @property |
| 209 | def address(self) -> str | None: |
Tested by
no test coverage detected