Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

CommandBarButton Interface

Represents a button control on a command bar.

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

public interface CommandBarButton : _CommandBarButton, 

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.

© 2016 Microsoft