In This Article

IBarPopupCommandLink Interface

Provides the base requirements for a BarCommandLink that displays popups.

public interface IBarPopupCommandLink

Properties

Gets whether the popup can show in customize mode.

bool CanPopupInCustomizeMode { get; }

Property Value

bool:

true if the popup can show in customize mode; otherwise, false.

Gets whether the popup menu can be torn-off onto a DockableToolBar.

bool CanTearOff { get; }

Property Value

bool:

true if the popup menu can be torn-off onto a DockableToolBar; otherwise, false.

Gets the BarCommandLinkCollection containing the command links for use in the button's popup.

BarCommandLinkCollection CommandLinks { get; }

Property Value

BarCommandLinkCollection:

The BarCommandLinkCollection containing the command links for use in the button's popup.

Gets the key of the DockableToolBar that is created if a tear-off occurs.

string TearOffDockableToolBarKey { get; }

Property Value

string:

The key of the DockableToolBar that is created if a tear-off occurs.

Gets whether to display the popup menu using a toolbar style.

bool UseToolBarStyleForPopupMenu { get; }

Property Value

bool:

true if a toolbar style should be used; otherwise, false.

Methods

Shows the popup for the command link.

bool ShowPopup()

Returns

bool:

true if the popup was displayed; otherwise, false.