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 _
)
'用途
Dim instance As CommandBar
Dim x As Object
Dim y As Object
instance.ShowPopup(x, y)
void ShowPopup(
Object x,
Object y
)
void ShowPopup(
[InAttribute] Object^ x,
[InAttribute] Object^ y
)
abstract ShowPopup :
x:Object *
y:Object -> unit
function ShowPopup(
x : Object,
y : Object
)
Parameters
- x
Type: System.Object
The x coordinate of the popup; if omitted, the x coordinate of the mouse is used.
- y
Type: System.Object
The y coordinate of the popup; if omitted, the 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.