Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Hyperlink Constructor (Inline)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Initializes a new instance of the Hyperlink class, taking a specified Inline object as the initial contents of the new Hyperlink.

Namespace:   System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

public Hyperlink(
	Inline childInline


Type: System.Windows.Documents.Inline

An Inline object specifying the initial contents of the new Hyperlink.

The following example demonstrates usage of this constructor.

// A child Inline element for the new Hyperlink element.
Run runx = new Run("Link text for the Hyperlink element.");

// After this line executes, the new element "hyper1"
// contains the specified Inline element, "runx".
Hyperlink hyperl = new Hyperlink(runx);

.NET Framework
Available since 3.0
Return to top
© 2018 Microsoft