Gets or sets a string which represents the hyperlink for this AnnObject. This is a dependency property.
public string Hyperlink {get; set;}
Public Property Hyperlink As String
The hyperlink for this AnnObject.
The hyperlink of an object can be any string value or null (Nothing in VB). 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.
This method will "run" the object hypelink manually.
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations
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
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Demos;
using Leadtools.Help;
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);
}
}
}
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Examples;
public void AnnObject_Hyperlink(AnnObject obj)
{
if (obj.Hyperlink != null && obj.Hyperlink != string.Empty)
{
MessageBox.Show(obj.Hyperlink);
}
}
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations
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
Products |
Support |
Feedback: Hyperlink Property (AnnObject) - Leadtools.Windows.Annotations |
Introduction |
Help Version 19.0.2017.3.22
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.