Freigeben über


_CommandBarButtonEvents_Event.add_Click Method

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

Usage

'Usage
Sub Sub1(Ctrl As CommandBarButton, _
    CancelDefault As Boolean)
End Sub
Dim  As New _CommandBarButtonEvents_ClickEventHandler(AddressOf Sub1)
Dim _CommandBarButtonEvents_Event1 As _CommandBarButtonEvents_Event
_CommandBarButtonEvents_Event1.add_Click()

Syntax

'Declaration
Sub add_Click( _
    ByVal  As _CommandBarButtonEvents_ClickEventHandler _
)
void add_Click(
    _CommandBarButtonEvents_ClickEventHandler 
);
public: Void add_Click(
    _CommandBarButtonEvents_ClickEventHandler^ 
);
public void add_Click(
    _CommandBarButtonEvents_ClickEventHandler 
);
function add_Click(
      : _CommandBarButtonEvents_ClickEventHandler
);

Parameters

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

_CommandBarButtonEvents_Event Interface
Microsoft.Office.Core Namespace

Other Resources

_CommandBarButtonEvents_Event Members