_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)
Usage
Sub Sub1(Ctrl As CommandBarButton, _
CancelDefault As Boolean)
End Sub
Dim _CommandBarButtonEvents_ClickEventHandler1 As New _CommandBarButtonEvents_ClickEventHandler(AddressOf Sub1)
Syntax
Public Delegate Sub _CommandBarButtonEvents_ClickEventHandler( _
<InAttribute()> ByVal Ctrl As CommandBarButton, _
<InAttribute(), OutAttribute()> ByRef CancelDefault As Boolean _
)
public delegate void _CommandBarButtonEvents_ClickEventHandler(
[In] CommandBarButton Ctrl,
[In, Out] ref bool CancelDefault
);
public delegate Void _CommandBarButtonEvents_ClickEventHandler(
CommandBarButton^ Ctrl,
&Boolean CancelDefault
);
public delegate void _CommandBarButtonEvents_ClickEventHandler(
/*in*/CommandBarButton Ctrl,
/*in*/boolean CancelDefault
);
In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.
Parameters
- Ctrl
Required CommandBarButton. Denotes the CommandBarButton control that initiated the event.
- CancelDefault
Required Boolean. False if the default behavior associated with the CommandBarButton control occurs, unless it’s canceled by another process or add-in.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000