This topic has not yet been rated - Rate this topic

Hyperlink Constructor (TextPointer, TextPointer)

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.

Namespace:  System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)
public:
Hyperlink(
	TextPointer^ start, 
	TextPointer^ end
)

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.

ExceptionCondition
ArgumentNullException

start or end is nullptr.

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.

The following example demonstrates usage of this constructor.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.