Share via


RibbonControlEventHandler Delegate

Definition

Represents the method that will handle events of an RibbonControl.

C#
public delegate void RibbonControlEventHandler(object sender, RibbonControlEventArgs e);

Parameters

sender
Object

The source of the event.

e
RibbonControlEventArgs

The data for the event.

Remarks

When you create a RibbonControlEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.

Applies to

Product Versions
Visual Studio Tools for Office 2017, 2019, 2022