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
- 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.
See Also
Reference
Microsoft.Office.Tools.Ribbon Namespace