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

RibbonOfficeMenu.Items 屬性

 

取得您已新增至 Microsoft Office 功能表的功能區控制項。

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

[BrowsableAttribute(false)]
IList<RibbonControl> Items { get; }

屬性值

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

您已在設計階段或執行階段新增至 Microsoft Office 功能表的功能區控制項集合。

Exception Condition
InvalidOperationException

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

You can add controls 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.RibbonOfficeMenu.Items collection. For more information, see Ribbon Object Model Overview.

When you add controls to the Microsoft Office Menu by using the Ribbon Designer, Visual Studio automatically adds the controls to the P:Microsoft.Office.Tools.Ribbon.RibbonOfficeMenu.Items property.

回到頁首
顯示: