Bookmark::Deselected Event

 

Occurs when selection moves from the Bookmark control to an area outside of the Bookmark control.

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

event SelectionEventHandler^ Deselected {
	void add(SelectionEventHandler^ value);
	void remove(SelectionEventHandler^ value);
}

This event is raised only when the Bookmark control has focus, and then focus is transferred away from the Bookmark control.

The following code example adds a Bookmark control with text to the first paragraph of the document and creates a Deselected event handler. A message box is displayed when the user moves the cursor from inside the bookmark to an area outside of the bookmark.

This example is for a document-level customization.

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