Method GetSpan
GetSpan(HyperlinkStart)
Gets the span of a hyperlink's content, between its two markers.
public static DocumentSpan GetSpan(this HyperlinkStart link)
Parameters
linkHyperlinkStartThe link's start marker.
Returns
- DocumentSpan
The span; empty for a link that holds nothing.
Exceptions
- ArgumentNullException
linkis null.- ArgumentException
The link is not in a paragraph.