The OnOpenDocument event notifies a client when a document is opened.
Name | Type | Description |
DocumentObject | Document | The Document object being opened. When the BeforeOrAfter argument is kBefore, this argument will be nothing because the document does not yet exist. |
FullDocumentName | String | Output string that specifies the fully qualified name of the document being opened. This is supplied both before and after. |
BeforeOrAfter | EventTimingEnum | Output EventTimingEnum indicating if the event is being fired before (kBefore) or after (kAfter) the document is opened. Notification is sent before and after the document is opened. |
Context | NameValueMap | Output NameValueMap object that can be used to determine the context of why the event fired. Additional information is provided through this argument to help in understanding the context of how the document is being opened. Name = "TopLevelFilename", Value = The full filename of the top-level file that was opened that's causing this file to be opened. For example, if an assembly is opened and a document referenced by that assembly is opened as a result, the TopLevelFilename will be the full filename of the assembly. This value can be the same as the FullDocumentName argument which indicates this document was opened by itself. |
HandlingCode | HandlingCodeEnum | Output HandlingCodeEnum that indicates how you are handling the event. The value of this argument is currently ignored for this event. |