Gets or sets a string which represents the hyperlink for this
AnnObject.
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable Property Hyperlink As String |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As AnnObject
Dim value As String
instance.Hyperlink = value
value = instance.Hyperlink
|
C# | |
---|
public virtual string Hyperlink {get; set;} |
Return Value
The hyperlink for this
AnnObject.
Example
This method will "run" the object hypelink manually.
Visual Basic | Copy 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 |
C# | Copy Code |
---|
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); } } } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also