Hyperlink Constructor (TextPointer^, TextPointer^)
.NET Framework (current version)
Initializes a new instance of the Hyperlink class, taking two TextPointer objects that indicate the beginning and end of a selection of content to be contained by the new Hyperlink.
Assembly: PresentationFramework (in PresentationFramework.dll)
Parameters
- start
-
Type:
System.Windows.Documents::TextPointer^
A TextPointer indicating the beginning of a selection of content to be contained by the new Hyperlink.
- end
-
Type:
System.Windows.Documents::TextPointer^
A TextPointer indicating the end of a selection of content to be contained by the new Hyperlink.
| Exception | Condition |
|---|---|
| ArgumentNullException | start or end is null. |
| ArgumentException | start and end do not resolve to a range of content suitable for enclosure by a Span element; for example, if start and end indicate positions in different paragraphs. |
This constructor is intended to initialize a new Hyperlink element such that it encloses a selection of preexisting content.
.NET Framework
Available since 3.0
Available since 3.0
Show: