편집

다음을 통해 공유


_CommandBarButtonEvents_ClickEventHandler Delegate

Definition

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

public delegate void _CommandBarButtonEvents_ClickEventHandler(CommandBarButton ^ Ctrl, [Runtime::InteropServices::Out] bool % CancelDefault);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate void _CommandBarButtonEvents_ClickEventHandler(CommandBarButton Ctrl, out bool CancelDefault);
[<System.Runtime.InteropServices.ComVisible(false)>]
type _CommandBarButtonEvents_ClickEventHandler = delegate of CommandBarButton * bool -> unit
Public Delegate Sub _CommandBarButtonEvents_ClickEventHandler(Ctrl As CommandBarButton, ByRef CancelDefault As Boolean)

Parameters

Ctrl
CommandBarButton

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

CancelDefault
Boolean

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

Attributes

Applies to