本文為機器翻譯文章。如需檢視英文版,請選取 [原文] 核取方塊。您也可以將滑鼠指標移到文字上,即可在快顯視窗顯示英文原文。
譯文
原文

RibbonGroup.Items 屬性

 

取得群組中的控制項。

命名空間:   Microsoft.Office.Tools.Ribbon
組件:  Microsoft.Office.Tools.Common (於 Microsoft.Office.Tools.Common.dll)

IList<RibbonControl> Items { get; }

屬性值

Type: System.Collections.Generic.IList<RibbonControl>

群組中的控制項集合。

Exception Condition
InvalidOperationException

您嘗試在載入功能區之後新增、移除或取代 RibbonControl

You can add a Ribbon control to a group at run time, but only before the Ribbon is loaded. Create an instance of the control, and then add the new control to the P:Microsoft.Office.Tools.Ribbon.RibbonGroup.Items collection. For more information, see Ribbon Object Model Overview.

When you add controls to a group by using the Ribbon Designer, Visual Studio automatically adds the controls to the P:Microsoft.Office.Tools.Ribbon.RibbonGroup.Items property of the group.

回到頁首
顯示: