Table of contents
TOC
Collapse the table of content
Expand the table of content

MenuSets.AddAtID Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Creates a new object with a specified ID in a collection.

Syntax

expression . AddAtID( lID )

expression A variable that represents a MenuSets object.

Parameters

NameRequired/OptionalData TypeDescription
lIDRequiredLongThe window context for the new object.

Return Value

MenuSet

Remarks

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.

The ID corresponds to a window or context menu. If the collection already contains an object at the specified ID, the AddAtID method returns an error.

Valid IDs are declared by the Visio type library in member VisUIObjSets . Not all collections include an object for every possible ID.

© 2018 Microsoft