共用方式為


RibbonMenu.ItemsLoading Event

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 (in Microsoft.Office.Tools.Common.dll)

Syntax

'Declaration
Event ItemsLoading As RibbonControlEventHandler
event RibbonControlEventHandler ItemsLoading

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 Interface

Microsoft.Office.Tools.Ribbon Namespace