ClickEventArgs Interface
Provides data for the BeforeDoubleClick and BeforeRightClick events.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
<GuidAttribute("307bfad5-b108-4235-9612-e8d5da6b2f4d")> _
Public Interface ClickEventArgs
[GuidAttribute("307bfad5-b108-4235-9612-e8d5da6b2f4d")]
public interface ClickEventArgs
The ClickEventArgs type exposes the following members.
Properties
Name | Description | |
---|---|---|
Cancel | Gets or sets a value indicating whether the event should be canceled. | |
Selection | Gets the current Selection. |
Top
Examples
The following code example demonstrates an event handler for the BeforeDoubleClick event. The event handler displays a message when the user double-clicks the document.
This example is for a document-level customization.
Private Sub DocumentBeforeDoubleClick()
AddHandler Me.BeforeDoubleClick, AddressOf ThisDocument_BeforeDoubleClick
End Sub
Private Sub ThisDocument_BeforeDoubleClick(ByVal sender As Object, ByVal e As Microsoft.Office.Tools.Word.ClickEventArgs)
MessageBox.Show(Me.Name & " was double-clicked.")
End Sub
private void DocumentBeforeDoubleClick()
{
this.BeforeDoubleClick += new Microsoft.Office.Tools.Word.ClickEventHandler(ThisDocument_BeforeDoubleClick);
}
void ThisDocument_BeforeDoubleClick(object sender, Microsoft.Office.Tools.Word.ClickEventArgs e)
{
MessageBox.Show(this.Name + " was double-clicked.");
}