Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ApplicationEvents4_WindowBeforeRightClickEventHandler Delegate 

A Delegate type used to add an event handler for the WindowBeforeRightClick event. The WindowBeforeRightClick event occurs when the editing area of a document window is right-clicked, before the default right-click action.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

'Usage
Sub Sub1(Sel As Selection, _
	Cancel As Boolean)
End Sub
Dim applicationEvents4_WindowBeforeRightClickEventHandler1 As New ApplicationEvents4_WindowBeforeRightClickEventHandler(AddressOf Sub1)

public delegate void ApplicationEvents4_WindowBeforeRightClickEventHandler(
	[In] Selection Sel, 
	[In, Out] ref bool Cancel
);
public delegate void ApplicationEvents4_WindowBeforeRightClickEventHandler(
	/*in*/Selection Sel, 
	/*in*/boolean Cancel
);
In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.

Parameters

Sel

The current selection.

Cancel

False when the event occurs. If the event procedure sets this argument to True, the default right-click action does not occur when the procedure is finished.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Community Additions

Show: