ICommandBarButtonEvents::Click Method (CommandBarButton^, Boolean)

 

Handles the Click event.

Namespace:   Microsoft.VisualStudio.CommandBars
Assembly:  Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)

[DispIdAttribute(1)]
void Click(
	CommandBarButton^ Ctrl,
	bool% CancelDefault
)

Parameters

Ctrl
Type: Microsoft.VisualStudio.CommandBars::CommandBarButton^

The control that was clicked.

CancelDefault
Type: System::Boolean

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

Return to top
Show: