Table of contents

Menus.Item 属性 (Visio)Menus.Item Property (Visio)

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

Menus集合返回菜单对象。只读的。Returns a Menu object from the Menus collection. Read-only.


表达式项目索引expression . Item( lIndex )

表达式_一个表示菜单集合的变量。_expression A variable that represents a Menus collection.


名称Name必需/可选Required/Optional数据类型Data Type说明Description
索引lIndex必需RequiredLongLong要检索的对象的索引。The index of the object to retrieve.

返回值Return Value



请注意 从 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.

当从集合中检索对象,您可以省略表达式中的Item ,因为它是所有集合的默认属性。下面的语句等效于上面给出的语法示例:When retrieving objects from a collection, you can omit Item from the expression because it is the default property for all collections. The following statement is equivalent to the syntax example given above:

objRet = object(index )
© 2018 Microsoft