Export (0) Print
Expand All

RibbonMenu.Dynamic Property

Gets or sets a value that indicates whether the menu can be modified at run time.

Namespace:  Microsoft.Office.Tools.Ribbon
Assembly:  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)

bool Dynamic { get; set; }

Property Value

Type: System.Boolean
true if the menu can be modified at run time; otherwise, false. The default is false.

Set the 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 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.

Show:
© 2014 Microsoft