Hyperlink (Object)

Represents a hyperlink marker.

Methods


Sub AddUrl( iUrl)
Adds a url to an Hyperlink.
Parameters:
iUrl
The URL to be added to the Hyperlink.
Example:
    This example links TheUrl to the NewHyperlink Hyperlink.
    
    NewHyperlink.AddUrl(TheUrl)
    
Func CountObject() As
Returns the number of Url which are linked to the Hyperlink.
Example:
    This example reads the number of Url in the Hyperlink NewHyperlink .
    
    Dim number As Integer
    number = NewHyperlink.CountObject
    
Func ItemObject( iIndex) As
Returns an Url which is linked to the Hyperlink using its index.
Parameters:
iIndex
The index of the Url in the Hyperlink. The index of the first object is 1, and the index of the last object is CountObject.
Returns:
The retrieved Url
Example:
    This example retrieves in ThisUrl the ninth object
    from the NewHyperlink  Hyperlink.
    
    Dim ThisUrl As String
    Set ThisUrl = NewHyperlink.ItemObject(9)
    
Sub RemoveObject( iIndex)
Removes an Url which is linked to the Hyperlink using its index.
Parameters:
iIndex
The index of the object in the Hyperlink. The index of the first object is 1, and the index of the last object is CountObject.
Example:
    This example removes the ninth Url
    from the NewHyperlink  Hyperlink.
    
    NewHyperlink.RemoveObject(9)