Share via


RibbonGallery.Click Event (2007 System)

Occurs when a user clicks an item on this RibbonGallery.

Namespace:  Microsoft.Office.Tools.Ribbon
Assembly:  Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)

Syntax

'Declaration
<RibbonEventAttribute("onAction")> _
Public Event Click As EventHandler(Of RibbonControlEventArgs)
'Usage
Dim instance As RibbonGallery 
Dim handler As EventHandler(Of RibbonControlEventArgs)

AddHandler instance.Click, handler
[RibbonEventAttribute("onAction")]
public event EventHandler<RibbonControlEventArgs> Click
[RibbonEventAttribute(L"onAction")]
public:
 event EventHandler<RibbonControlEventArgs^>^ Click {
    void add (EventHandler<RibbonControlEventArgs^>^ value);
    void remove (EventHandler<RibbonControlEventArgs^>^ value);
}
JScript does not support events.

Remarks

This event is raised every time a user clicks a RibbonDropDownItem on this RibbonGallery.

If the ShowItemSelection property is set to true, this event is raised only when a user clicks an item that is not currently selected.

.NET Framework Security

See Also

Reference

RibbonGallery Class

RibbonGallery Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview