Document::ActivateEvent Event

 

Occurs when the document becomes the active window.

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

event WindowEventHandler^ ActivateEvent {
	void add(WindowEventHandler^ value);
	void remove(WindowEventHandler^ value);
}

The ActivateEvent event occurs only when you move the focus within an application. Moving the focus to or from an object in another application does not trigger the event.

The following code snippet displays a message when the document is activated. This example is for an application-level add-in.

No code example is currently available or this language may not be supported.
Return to top
Show: