_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)
Syntax
'Declaration
<ComVisibleAttribute(False)> _
Public Delegate Sub _CommandBarButtonEvents_ClickEventHandler ( _
Ctrl As CommandBarButton, _
<OutAttribute> ByRef CancelDefault As Boolean _
)
'Usage
Dim instance As New _CommandBarButtonEvents_ClickEventHandler(AddressOf HandlerMethod)
[ComVisibleAttribute(false)]
public delegate void _CommandBarButtonEvents_ClickEventHandler(
CommandBarButton Ctrl,
out bool CancelDefault
)
Parameters
Ctrl
Type: Microsoft.Office.Core.CommandBarButtonRequired CommandBarButton. Denotes the CommandBarButton control that initiated the event.
CancelDefault
Type: System.BooleanRequired Boolean. False if the default behavior associated with the CommandBarButton control occurs, unless it’s canceled by another process or add-in.