Application.BuiltInMenus Property
Visio Automation Reference |
Returns a UIObject object that represents a copy of the built-in Microsoft Office Visio menus and accelerators. Read-only.
Version Information
Version Added: Visio 4.0
Syntax
expression.BuiltInMenus
expression A variable that represents an Application object.
Return Value
UIObject
Remarks
You can use the BuiltInMenus property to obtain a UIObject object and modify its menus and accelerators. You can then use the SetCustomMenus method of an Application or Document object to substitute your customized menus and accelerators for the built-in Visio menus and accelerators.
You can also use the SaveToFile method of the UIObject object to store its menus in a file and reload them as custom menus by setting the CustomMenusFile property of an Application or Document object.
Example
The following Microsoft Visual Basic for Applications (VBA) macro shows how to use the BuiltInMenus property. It adds a menu and menu item to the drawing window menu set and sets the menu and menu item's Caption properties.
To restore the built-in menus in Microsoft Office Visio after you run this macro, call the ThisDocument.ClearCustomMenus method.
Visual Basic for Applications |
---|
|
See Also