RibbonMenu.ItemsLoading Event (2007 System)

Occurs when controls or nested menus are loaded into the current menu 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 Event ItemsLoading As EventHandler(Of RibbonControlEventArgs)
'Usage
Dim instance As RibbonMenu 
Dim handler As EventHandler(Of RibbonControlEventArgs)

AddHandler instance.ItemsLoading, handler
public event EventHandler<RibbonControlEventArgs> ItemsLoading
public:
 event EventHandler<RibbonControlEventArgs^>^ ItemsLoading {
    void add (EventHandler<RibbonControlEventArgs^>^ value);
    void remove (EventHandler<RibbonControlEventArgs^>^ value);
}
JScript does not support events.

Remarks

This event is raised the first time the user expands the menu. If you modify the controls in the menu at run time, this event is also raised the first time the user expands the menu after you add a control or remove a control.

This event is raised only when the Dynamic property is true.

.NET Framework Security

See Also

Reference

RibbonMenu Class

RibbonMenu Members

Microsoft.Office.Tools.Ribbon Namespace