This documentation is archived and is not being maintained.

_CommandBarButtonEvents_ClickEventHandler Delegate

A Delegate type used to add an event handler for the Click event. The Click event occurs when the user clicks a CommandBarButton object.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

public delegate void _CommandBarButtonEvents_ClickEventHandler(
	CommandBarButton Ctrl,
	out bool CancelDefault


Type: Microsoft.Office.Core.CommandBarButton

Required CommandBarButton. Denotes the CommandBarButton control that initiated the event.

Type: System.Boolean

Required Boolean. False if the default behavior associated with the CommandBarButton control occurs, unless it’s canceled by another process or add-in.