This document is archived and information here might be outdated.  Recommended version.


ICommandBar.Popup Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Framework)  

ICommandBar.Popup Method

Displays this commandbar as a popup menu at the specified location.

[Visual Basic .NET]
Public Function Popup ( _
    [ByVal X As Integer], _
    [ByVal Y As Integer] _
) As ICommandItem
[C#]
public ICommandItem Popup (
    int X,
    int Y
);
[C#]

Optional Values

X   Supply 0 as a default value.
Y   Supply 0 as a default value.

Product Availability

Available with ArcGIS Desktop.

Description

 

X is the X coordinate, in device units, of the point on the application where the commandbar should be displayed. Applies to menus and shortcut menus only. [Optional]

Y is the Y coordinate, in device units, of the point on the application where the commandbar should be displayed. Applies to menus and shortcut menus only. [Optional]

 

See Also

ICommandBar Interface | ICommandItem Interface

.NET Snippets

Create Context Menu

.NET Samples

Layer filtering TOC view (Code Files: TOCLayerFilter)

.NET Related Topics

How to show a context menu in ArcGIS for Desktop applications