Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
ContextMenu Property
See Also 
Leadtools.Annotations Namespace > AnnAutomationObject Class : ContextMenu Property




Gets or sets the context menu of this AnnAutomationObject.

Syntax

Visual Basic (Declaration) 
Public Overridable Property ContextMenu As ContextMenu
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomationObject
Dim value As ContextMenu
 
instance.ContextMenu = value
 
value = instance.ContextMenu
C# 
public virtual ContextMenu ContextMenu {get; set;}
Managed Extensions for C++ 
public: __property virtual ContextMenu get_ContextMenu();
public: __property virtual void set_ContextMenu( 
   ContextMenu value
);
C++/CLI 
public:
virtual property ContextMenu ContextMenu {
   ContextMenu get();
   void set (ContextMenu value);
}

Return Value

The context menu of this AnnAutomationObject.

Example

For an example, refer to AnnAutomationManager.

Remarks

The Context Menu is displayed whenever an annotation object associated with this automation object is right-clicked by the mouse in design mode. You can use this context menu directly or you can derive your own classes from the ContextMenu class and assign it to this value. Setting this value to null (Nothing in Visual Basic) disables showing the context menu for this object in design mode.

For information regarding default context menus used throughout the user interface in the automated mode, including information on how to override the default values, refer to Localization of LEADTOOLS for .NET Annotations Automation.

Requirements

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

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features