Document::BeforeRightClick Event

 

Occurs when the editing area of the document window is right-clicked, before the default right-click action.

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

event ClickEventHandler^ BeforeRightClick {
	void add(ClickEventHandler^ value);
	void remove(ClickEventHandler^ value);
}

To prevent the default right-click action from occurring, set the Cancel argument of the provided CancelEventArgs object to true.

The following code example displays a message when you right-click the document. 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: