다음을 통해 공유


ClickEventArgs Interface

Definition

Provides data for the BeforeDoubleClick and BeforeRightClick events.

public interface class ClickEventArgs
[System.Runtime.InteropServices.Guid("307bfad5-b108-4235-9612-e8d5da6b2f4d")]
public interface ClickEventArgs
[<System.Runtime.InteropServices.Guid("307bfad5-b108-4235-9612-e8d5da6b2f4d")>]
type ClickEventArgs = interface
Public Interface ClickEventArgs
Attributes

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 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.");
}
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

Properties

Cancel

Gets or sets a value indicating whether the event should be canceled.

Selection

Gets the current Selection.

Applies to