Edit

Office.AddinCommands.Event interface

The Event object is passed as a parameter to add-in functions invoked by function command buttons. The object allows the add-in to identify which button was clicked and to signal the Office application that it has completed its processing.

Remarks

For information on support in Excel, Word, and PowerPoint, see Add-in commands requirement sets.

The following outlines support information for Outlook.

API set: Mailbox 1.3

See Add-in commands requirement sets for more support information.

Minimum permission level (Outlook): restricted

Applicable Outlook mode: Compose or Read

Properties

source

Information about the control that triggered calling this function.

Methods

completed(options)

Indicates that the add-in has completed processing and will automatically be closed.

This method must be called at the end of a function which was invoked by the following:

Property Details

source

Information about the control that triggered calling this function.

source:Source;

Property Value

Remarks

The following outlines support information for Outlook.

API set: Mailbox 1.3

Minimum permission level: restricted

Applicable Outlook mode: Compose or Read

Examples

// In this example, consider a button defined in an add-in manifest.
// The following is the XML manifest definition. Below it is the Teams 
// manifest (preview) definition.
//
//
//