共用方式為


RibbonControlEventHandler Delegate

Definition

Represents the method that will handle events of an RibbonControl.

public delegate void RibbonControlEventHandler(System::Object ^ sender, RibbonControlEventArgs ^ e);
public delegate void RibbonControlEventHandler(object sender, RibbonControlEventArgs e);
type RibbonControlEventHandler = delegate of obj * RibbonControlEventArgs -> unit
Public Delegate Sub RibbonControlEventHandler(sender As Object, e As RibbonControlEventArgs)

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