Office.InitializationReason enum

Specifies whether the add-in was just inserted or was already contained in the document.

Fields

DocumentOpened

The add-in is already part of the document that was opened.

Inserted

The add-in was just inserted into the document.