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)

Syntax

'Declaration
Property Dynamic As Boolean
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.

Remarks

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.

.NET Framework Security

See Also

Reference

RibbonMenu Interface

Microsoft.Office.Tools.Ribbon Namespace