Share via


CommandBarButton Interface 

Represents a button control on a command bar.

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

Usage

Public Class ommandBarButtonImplementation
    Implements CommandBarButton
End Class
Dim ommandBarButtonImplementation1 As New ommandBarButtonImplementation()

Syntax

Public Interface CommandBarButton
    Inherits _CommandBarButton, _CommandBarButtonEvents_Event
public interface CommandBarButton : _CommandBarButton, _CommandBarButtonEvents_Event
public interface class CommandBarButton : public _CommandBarButton, _CommandBarButtonEvents_Event
public interface CommandBarButton implements _CommandBarButton, _CommandBarButtonEvents_Event
public interface CommandBarButton implements _CommandBarButton, , _CommandBarButtonEvents_Event

Remarks

Use Controls(index), where index is the index number of the control, to return a CommandBarButton object. (The Type property of the control must be msoControlButton.)

You can also use the FindControl method to return a CommandBarButton object.

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

Microsoft.Office.Core Namespace

Other Resources

CommandBarButton Members