Table of contents
TOC
折叠目录
展开目录

InvisibleApp.ClearCustomMenus 方法 (Visio)InvisibleApp.ClearCustomMenus Method (Visio)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

恢复内置 Microsoft Visio 用户界面。Restores the built-in Microsoft Visio user interface.

语法Syntax

表达式ClearCustomMenusexpression . ClearCustomMenus

表达式_一个表示InvisibleApp对象的变量。_expression A variable that represents an InvisibleApp object.

返回值Return Value

Nothing

注解Remarks

请注意 从 Visio,Microsoft Office 流畅的用户界面 (UI) 替换的前一个系统的分层的菜单、 工具栏和任务窗格。VBA 对象和用于自定义用户界面,在 Visio 的以前版本中的成员仍可在 Visio 中,但它们的功能有所不同。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.

在没有自定义菜单的对象上调用ClearCustomMenus方法不起作用。Calling the ClearCustomMenus method on an object without custom menus has no effect.

示例Example

此示例演示如何清除状态报告应用程序对象的自定义菜单并还原内置 Visio 菜单。This example shows how to clear custom menus for the ThisDocument and Application objects and restore the built-in Visio menus.


Public Sub ClearCustomMenus_Example() 

 'Tell Visio to use the built-in menus. 
 ThisDocument.ClearCustomMenus 
 Visio.Application.ClearCustomMenus 

End Sub
© 2018 Microsoft