Share via


RibbonComboBox.ItemsLoading Event (2007 System)

Occurs when the drop-down list for this RibbonComboBox is opened.

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 RibbonComboBox 
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

Items added to a RibbonComboBox while its drop-down list is closed are not loaded into the Office application until the user opens the drop-down list.

You can use this event to update the list of items in this RibbonComboBox before it is shown to the user.

.NET Framework Security

See Also

Reference

RibbonComboBox Class

RibbonComboBox Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview