Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
Displays the automation context menu.
Visual Basic | Copy Code |
---|---|
Public Sub AnnAutomation_ShowContextMenu(ByVal automation As AnnAutomation) |
C# | Copy Code |
---|---|
public void AnnAutomation_ShowContextMenu(AnnAutomation automation) |
This method will display the context menu in ContextMenu. This AnnAutomation will call this method when the user right-clicks the mouse cursor anywhere in the Container surface but not on any of the objects currently in the container. You can call this method to show this context menu manually (for example, as a result from clicking on a certain menu item in your application).
If the ContextMenu value is null (Nothing in Visual Basic), this method will not do anything.
If a click is on an object, this AnnAutomation object will call the ShowObjectContextMenu method instead.
Call the CanShowObjectContextMenu property to determine if the AnnAutomation is currently in a state where the object context menu can be shown
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family