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

RibbonMenu.Dynamic 屬性

 

取得或設定值,指出功能表是否可在執行階段修改。

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

bool Dynamic { get; set; }

屬性值

Type: System.Boolean

若功能表可以在執行階段修改,則為 true;否則為 false 預設為 false

Set the P:Microsoft.Office.Tools.Ribbon.RibbonMenu.Dynamic property to true if you want to add controls to the menu at run time, after the Ribbon is loaded by the Microsoft Office application.

For menus that you add to the Ribbon at design time, the P:Microsoft.Office.Tools.Ribbon.RibbonMenu.Dynamic property can be set only before the Ribbon loads. For more information, see Ribbon Object Model Overview.

This property can be set at run time only under certain conditions. For more information, see Ribbon Object Model Overview.

回到頁首
顯示: