Displays the automation context menu.
public virtual void ShowContextMenu(
Point pos
)
Public Overridable Sub ShowContextMenu( _
ByVal pos As Point _
)
public:
virtual void ShowContextMenu(
Point pos
)
pos
A System.Drawing.Point object that specifies the coordinates at which to display the menu. These coordinates are specified relative to the client coordinates of the automation control.
This method will display the context menu in AnnAutomationManager.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 AnnAutomationManager.ContextMenu value is null (Nothing in VB), 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
Displays the automation context menu.
using Leadtools;
using Leadtools.Annotations;
using Leadtools.WinForms;
using Leadtools.Drawing;
public void AnnAutomation_ShowContextMenu(AnnAutomation automation)
{
// show the context menu at the current cursor coordinates
Point pos = Cursor.Position;
pos = automation.Viewer.PointToClient(pos);
automation.ShowContextMenu(pos);
}
Imports Leadtools
Imports Leadtools.Annotations
Imports Leadtools.WinForms
Imports Leadtools.Drawing
Public Sub AnnAutomation_ShowContextMenu(ByVal automation As AnnAutomation)
' show the context menu at the current cursor coordinates
Dim pos As Point = Cursor.Position
pos = automation.Viewer.PointToClient(pos)
automation.ShowContextMenu(pos)
End Sub
Products |
Support |
Feedback: ShowContextMenu Method - Leadtools.Annotations |
Introduction |
Help Version 19.0.2017.6.20
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.