Hyperlink¶
Represents a hyperlink definition.
Remarks¶
All Inline-derived elements except Hyperlink are supported in this collection.
Capabilities¶
Links and Bookmarks¶
- Hyperlink.Address: Gets or sets the hyperlink address: a URL, or a bookmark name when IsBookmarkLink is
true. - Hyperlink.DisplayInlines: Gets the displayed inline elements.
- Hyperlink.IsBookmarkLink: Gets or sets whether the hyperlink points to a bookmark.
- Hyperlink.ScreenTip: Gets or sets the text shown when the pointer is over the hyperlink.
- Hyperlink.TargetFrame: Gets or sets where the link opens:
'_blank','_parent','_self','_top'or a frame name.
Properties¶
- Hyperlink.Content: Gets the content range of the element, for example to replace text only inside this element.
- Hyperlink.ElementType: Gets the element type name, such as
'Paragraph','Run'or'Table'.
Methods¶
- Hyperlink.Clone: Creates a copy of the element. The copy is not part of the document until it is added to a collection with the collection's
Appendmethod, such as BlockCollection.Append. - Hyperlink.GetChildElements: Returns the child elements.
- Hyperlink.GetParentElements: Returns the ancestors of the element, starting from the direct parent.