CustomToolbars property

Microsoft Visio Developer Reference

CustomToolbars property

   Example   

Gets a UIObject object that represents the current custom toolbars and status bars of an Application object or a Document object.

Version added

4.0

Syntax

objRet = object.CustomToolbars

objRet

A UIObject object that represents the object's current custom toolbars.

object

Required. An expression that returns an Application or Document object.

Remarks

Beginning with Visio 2000, if you haven't customized the user interface, the object returned by CustomToolbars property contains the same collections as the object returned by the BuiltInToolbars property.

In Visio 5.0 or earlier, if the object is not using custom toolbars, the CustomToolbars property returns Nothing.