_CommandBarButtonEvents_ClickEventHandler Delegate
The event handler for the command bar button's click event.
Namespace: Microsoft.VisualStudio.CommandBars
Assembly: Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)
Syntax
'宣告
<ComVisibleAttribute(False)> _
Public Delegate Sub _CommandBarButtonEvents_ClickEventHandler ( _
Ctrl As CommandBarButton, _
<OutAttribute> ByRef CancelDefault As Boolean _
)
'用途
Dim instance As New _CommandBarButtonEvents_ClickEventHandler(AddressOf HandlerMethod)
[ComVisibleAttribute(false)]
public delegate void _CommandBarButtonEvents_ClickEventHandler(
CommandBarButton Ctrl,
out bool CancelDefault
)
[ComVisibleAttribute(false)]
public delegate void _CommandBarButtonEvents_ClickEventHandler(
[InAttribute] CommandBarButton^ Ctrl,
[InAttribute] [OutAttribute] bool% CancelDefault
)
[<ComVisibleAttribute(false)>]
type _CommandBarButtonEvents_ClickEventHandler =
delegate of
Ctrl:CommandBarButton *
CancelDefault:bool byref -> unit
JScript does not support delegates.
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.