Share via


ICommandBarButtonEvents.Click(CommandBarButton, Boolean) Method

Definition

Handles the Click event.

public:
 void Click(Microsoft::VisualStudio::CommandBars::CommandBarButton ^ Ctrl, [Runtime::InteropServices::Out] bool % CancelDefault);
void Click(Microsoft::VisualStudio::CommandBars::CommandBarButton const & Ctrl, [Runtime::InteropServices::Out] bool & CancelDefault);
[System.Runtime.InteropServices.DispId(1)]
public void Click (Microsoft.VisualStudio.CommandBars.CommandBarButton Ctrl, out bool CancelDefault);
[<System.Runtime.InteropServices.DispId(1)>]
abstract member Click : Microsoft.VisualStudio.CommandBars.CommandBarButton * bool -> unit
Public Sub Click (Ctrl As CommandBarButton, ByRef CancelDefault As Boolean)

Parameters

Ctrl
CommandBarButton

The control that was clicked.

CancelDefault
Boolean

[in, out] true if the action is to be canceled, otherwise false.

Attributes

Applies to