CommandBarPopup Interface
Collapse the table of content
Expand the table of content
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

CommandBarPopup Interface

Represents a pop-up control on a command bar.

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

public interface CommandBarPopup : CommandBarControl

Use Controls(index), where index is the number of the control, to return a CommandBarPopup object. The Type property of the control must be msoControlPopup, msoControlGraphicPopup, msoControlButtonPopup, msoControlSplitButtonPopup, or msoControlSplitButtonMRUPopup.

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

Every pop-up control contains a CommandBar object. To return the command bar from a pop-up control, apply the CommandBar property to the CommandBarPopup object.

© 2015 Microsoft