Share via


RibbonDropDown.SelectionChanged Event (2007 System)

Occurs when a user selects a new item on a Ribbon drop-down control.

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 SelectionChanged As EventHandler(Of RibbonControlEventArgs)
'Usage
Dim instance As RibbonDropDown 
Dim handler As EventHandler(Of RibbonControlEventArgs)

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

Remarks

The SelectionChanged event is raised only when the selected item changes, and not in the following circumstances:

  • When the user selects the item that was already selected.

  • When a user clicks a button.

  • When you assign a new value to the SelectedItem or SelectedItemIndex properties in your code.

.NET Framework Security

See Also

Reference

RibbonDropDown Class

RibbonDropDown Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview