Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Hyperlink Property
See Also  Example
Leadtools.Windows.Annotations Namespace > AnnObjectBase Class : Hyperlink Property





Gets or sets a string which represents the hyperlink for this AnnObjectBase. This is a dependency property.

Syntax

Visual Basic (Declaration) 
Public Property Hyperlink As String
Visual Basic (Usage)Copy Code
Dim instance As AnnObjectBase
Dim value As String
 
instance.Hyperlink = value
 
value = instance.Hyperlink
C# 
public string Hyperlink {get; set;}
C++/CLI 
public:
property String^ Hyperlink {
   String^ get();
   void set (String^ value);
}
XAML Attributes Usage 

<object Hyperlink=string .../>

Dependencies Property Information 

Identifier field

HyperlinkProperty

Metadata properties set to true

None

XAML Attributes Usage 

<object Hyperlink=string .../>

Dependencies Property Information 

Identifier field

HyperlinkProperty

Metadata properties set to true

None

Return Value

The hyperlink for this AnnObjectBase.

Example

This method will "run" the object hypelink manually.

Visual BasicCopy Code
Public Sub AnnObject_Hyperlink(ByVal obj As AnnObjectBase)
   If Not obj.Hyperlink Is Nothing AndAlso obj.Hyperlink <> String.Empty Then
      Try
         System.Diagnostics.Process.Start(obj.Hyperlink)
      Catch ex As Exception
         MessageBox.Show(ex.Message)
      End Try
   End If
End Sub
C#Copy Code
public void AnnObject_Hyperlink(AnnObjectBase obj) 

   if(obj.Hyperlink != null && obj.Hyperlink != string.Empty) 
   { 
      try 
      { 
         System.Diagnostics.Process.Start(obj.Hyperlink); 
      } 
      catch(Exception ex) 
      { 
         MessageBox.Show(ex.Message); 
      } 
   } 
}

Remarks

The hyperlink of an object can be any string value or null (Nothing in Visual Basic). It is up to the user application to determine how to use this value.

In automation mode, if the object has a hyperlink and is clicked on at runtime user mode, the automation framework will try to externally execute the hyperlink value. For example, if the hyperlink is an address to a website, a new instance of your internet browser will be created with this hyperlink as the target address. If the hyperlink is a movie file, the default movie player application in your machine will start with this hyperlink value as the movie name and so on.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also

Hyperlink requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.