LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)
LEAD Technologies, Inc

Hyperlink Property (AnnObject)

Example 





Gets or sets a string which represents the hyperlink for this AnnObject. This is a dependency property. .NET support Silverlight support
Syntax
public string Hyperlink {get; set;}
'Declaration
 
Public Property Hyperlink As String
'Usage
 
Dim instance As AnnObject
Dim value As String
 
instance.Hyperlink = value
 
value = instance.Hyperlink
public string Hyperlink {get; set;}
 get_Hyperlink();
set_Hyperlink(value);
public:
property String^ Hyperlink {
   String^ get();
   void set (    String^ value);
}

Property Value

The hyperlink for this AnnObject.
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.

Example
Copy CodeCopy Code  
Public Sub AnnObject_Hyperlink(ByVal obj As AnnObject)
   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
public void AnnObject_Hyperlink(AnnObject obj)
{
   if(obj.Hyperlink != null && obj.Hyperlink != string.Empty)
   {
      try
      {
         System.Diagnostics.Process.Start(obj.Hyperlink);
      }
      catch(Exception ex)
      {
         MessageBox.Show(ex.Message);
      }
   }
}
public void AnnObject_Hyperlink(AnnObject obj)
{
   if (obj.Hyperlink != null && obj.Hyperlink != string.Empty)
   {
      MessageBox.Show(obj.Hyperlink);
   }
}
Public Sub AnnObject_Hyperlink(ByVal obj As AnnObject)
   If Not obj.Hyperlink Is Nothing AndAlso obj.Hyperlink <> String.Empty Then
      MessageBox.Show(obj.Hyperlink)
   End If
End Sub
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnObject Class
AnnObject Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.