Intersoft ClientUI Documentation
Hyperlink Class
Members  See Also  Send Feedback
Intersoft.Client.Documents Namespace : Hyperlink Class






An inline-level flow content element that provides facilities for hosting hyperlinks within flow content.

Object Model

Hyperlink Class

Syntax

Visual Basic (Declaration) 
Public Class Hyperlink 
   Inherits Span
Visual Basic (Usage)Copy Code
Dim instance As Hyperlink
C# 
public class Hyperlink : Span 
Delphi 
public class Hyperlink = class(Span)
JScript 
public class Hyperlink extends Span
Managed Extensions for C++ 
public __gc class Hyperlink : public Span 
C++/CLI 
public ref class Hyperlink : public Span 

Remarks

Hyperlink element provides facilities for hosting hyperlinks within FlowDocument content. You can specify NavigateUri property to the Uri of the hyperlink where user will be navigated to when the Hyperlink is clicked. Hyperlink navigation can only occur, however, if either the direct or indirect parent of a Hyperlink is a navigation host, including NavigationWindow, Frame, or any browser that can host XBAPs (which includes Internet Explorer 7, Microsoft Internet Explorer 6, and Firefox 2.0+).

Hyperlink is used in a similar manner to the <A> tag in HTML. Similar to HTML link, you can specify the target name where the link should be opened. You can specify _blank, _self, or the name of the navigation host as the target name.

XAML Copy Code
<Intersoft:FlowDocument>
    <Intersoft:Paragraph>
        <Intersoft:Hyperlink NavigateUri="http://www.intersoftpt.com" TargetName="_self">
            <Intersoft:Run>
                Click the following link
            </Intersoft:Run>
        </Intersoft:Hyperlink>
    </Intersoft:Paragraph>
</Intersoft:FlowDocument>

You can specify several formatting that will be applied when the hyperlink is hovered and pressed. For more information, see Configuring Hyperlink Formatting.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      Intersoft.Client.Documents.TextElement
         Intersoft.Client.Documents.Inline
            Intersoft.Client.Documents.Span
               Intersoft.Client.Documents.Hyperlink

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.