Intersoft ClientUI Documentation
TargetName Property
See Also  Send Feedback
Intersoft.Client.Documents Namespace > Hyperlink Class : TargetName Property






Gets or sets the name of a target window or frame for the Hyperlink.

Syntax

Visual Basic (Declaration) 
Public Property TargetName As String
Visual Basic (Usage)Copy Code
Dim instance As Hyperlink
Dim value As String
 
instance.TargetName = value
 
value = instance.TargetName
C# 
public string TargetName {get; set;}
Delphi 
public read-write property TargetName: String; 
JScript 
public function get,set TargetName : String
Managed Extensions for C++ 
public: __property string* get_TargetName();
public: __property void set_TargetName( 
   string* value
);
C++/CLI 
public:
property String^ TargetName {
   String^ get();
   void set (    String^ value);
}

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.

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.