MenuItem 属性 (Visio)MenuItem.Style property (Visio)

确定菜单项是否显示图标、标题或它们的组合。Determines whether a menu item shows an icon, a caption, or some combination. 读/写。Read/write.



_表达式_一个代表**MenuItem** 对象的变量。expression A variable that represents a MenuItem object.

返回值Return value




从 Visio 2010 开始, Microsoft Office 熟知用户界面 (UI) 取代了分层菜单、工具栏和任务窗格的上一个系统。Starting with Visio 2010, the Microsoft Office Fluent user interface (UI) replaced the previous system of layered menus, toolbars, and task panes. 在 visio 的早期版本中用于自定义用户界面的 VBA 对象和成员在 Visio 中仍然可用, 但它们的工作方式不同。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.

下表列出了Style属性的可能值。Possible values for the Style property are listed in the following table. 这些常量由 Visio 类型库在 VisUIButtonStyle 中声明。These constants are declared by the Visio type library in VisUIButtonStyle.

常量Constant Value
visButtonAutomaticvisButtonAutomatic 00
visButtonCaptionvisButtonCaption 11
visButtonIconvisButtonIcon 双面2
visButtonIconandCaptionvisButtonIconandCaption 第三章3

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.