Share via


Application.Addons Property

Visio Automation Reference

Returns the Addons collection of an Application or InvisibleApp object. Read-only.

Version Information
 Version Added:  Visio 4.0

Syntax

expression.Addons

expression   A variable that represents an Application object.

Return Value
Addons

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 collection 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.

Visual Basic for Applications
  
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("<em>path\filename</em>") 

End Sub

See Also