ToolbarItem BeginGroup 屬性 (Visio)ToolbarItem.BeginGroup property (Visio)

會決定工具列項目是否會顯示在工具列上項目群組的開頭。Determines whether a toolbar item appears at the beginning of a group of items on the toolbar. 可讀寫。Read/write.


expressionexpression. BeginGroup

_運算式_代表**ToolbarItem** 物件的變數。expression A variable that represents a ToolbarItem 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.

如果將 ToolbarItem 物件的 BeginGroup 屬性設定為 True,工具列中的這個項目之前就會插入空格字元。If you set the BeginGroup property of a ToolbarItem object to True, a spacer is inserted into the toolbar preceding this item.


在 Microsoft Visio 2000 中,在功能表中建立分隔符號或在工具列中建立空格字元的唯一方法,就是使用屬性值為零的 CmdNum、包含 "" 的 Caption 屬性,以及空白的 MenuItemsToolbarItems 集合,加入 Dummy 項目。In Microsoft Visio 2000, the only way to create a separator in a menu or a spacer in a toolbar was to add a dummy item with a CmdNum property of zero, a Caption property that contained "", and an empty MenuItems or ToolbarItems collection. 這項技巧在較新的版本中仍可沿用。This technique continues to work in later versions.

支援和意見反應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.