Addons Property [Visio 2003 SDK Documentation]
Returns the Addons collection of an Application object.
objRet = object**.Addons**
objRet The Addons collection of the Application object.
object Required. An expression that returns the Application object that owns the collection.
Version added
4.0
Remarks
The Addons collection includes an Addon object for each add-on in the folders specified by the AddonPaths property and for each add-on that is added dynamically to the collection by other add-ons.
Example
This Microsoft Visual Basic for Applications (VBA) macro shows how to get the Addons collections and add an add-on to it.
Before running this macro, replace path\filename with a valid path and file name for an add-on in your Visio project.
Public Sub Addons_Example()
Dim vsoAddons As Visio.Addons
Dim vsoAddon As Visio.Addon
'Add an add-on to the Addons collection.
Set vsoAddons = Visio.Addons
Set vsoAddon = vsoAddons.Add("path\filename")
End Sub
Applies to | <Global> object | Application object | InvisibleApp object
See Also | AddonPaths property | Addons collection