CommandBar.ShowPopup Method
Displays the command bar as a shortcut menu at the specified coordinates or at the current mouse coordinates.
Namespace: Microsoft.VisualStudio.CommandBars
Assembly: Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)
Syntax
'宣言
Sub ShowPopup ( _
x As Object, _
y As Object _
)
void ShowPopup(
Object x,
Object y
)
Parameters
- x
Type: System.Object
An integer representing the x coordinate of the location of the popup; if omitted, the current x coordinate of the mouse is used.
- y
Type: System.Object
An integer representing the y coordinate of the location of the popup; if omitted, the current y coordinate of the mouse is used.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.