ToolbarSets Object (Visio)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Includes a ToolbarSet object for each window context that can display toolbars.

Note Note

Starting with Visio, the Microsoft Office Fluent user interface (UI) replaces the previous system of layered menus, toolbars, and task panes. VBA objects and members that you used to customize the user interface in previous versions of Visio are still available in Visio, but they function differently.

To retrieve a ToolbarSets collection, use the ToolbarSets property of a UIObject object.

The default property of a ToolbarSets collection is Item.

Unlike other Microsoft Visio collections, the ToolbarSets collection is indexed starting with zero (0) rather than 1.

A ToolbarSet object is identified in the ToolbarSets collection by its SetID property, which corresponds to a Visio window context. For a list of SetID values for ToolbarSet objects, see the SetID property.

© 2016 Microsoft