All Frameworks  Object Hierarchy  This Framework  Indexes   

Hyperlink (Object)

Represents a hyperlink marker.

Method Index

AddUrl
Adds a url to an Hyperlink.
CountObject
Returns the number of Url which are linked to the Hyperlink.
ItemObject
Returns an Url which is linked to the Hyperlink using its index.
RemoveObject
Removes an Url which is linked to the Hyperlink using its index.

Methods


o 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)
    
o 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
    
o 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)
    
o 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)
    

Copyright © 2003, Dassault Systèmes. All rights reserved.