CommandBarButton Interface

Represents a button control on a command bar.

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

Syntax

'Declaration
<GuidAttribute("000C030E-0000-0000-C000-000000000046")> _
Public Interface CommandBarButton _
    Inherits _CommandBarButton, _CommandBarButtonEvents_Event
'Usage
Dim instance As CommandBarButton
[GuidAttribute("000C030E-0000-0000-C000-000000000046")]
public interface CommandBarButton : _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.

See Also

Reference

CommandBarButton Members

Microsoft.Office.Core Namespace