RibbonMenu.Dynamic Property (2007 System)
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.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
Public Property Dynamic As Boolean
'Usage
Dim instance As RibbonMenu
Dim value As Boolean
value = instance.Dynamic
instance.Dynamic = value
public bool Dynamic { get; set; }
public:
property bool Dynamic {
bool get ();
void set (bool value);
}
public function get Dynamic () : boolean
public function set Dynamic (value : boolean)
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.