LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

ContextMenu Property (AnnAutomationObject)






Gets or sets the context menu of this AnnAutomationObject.
Syntax
public virtual ContextMenu ContextMenu {get; set;}
'Declaration
 
Public Overridable Property ContextMenu As ContextMenu
'Usage
 
Dim instance As AnnAutomationObject
Dim value As ContextMenu
 
instance.ContextMenu = value
 
value = instance.ContextMenu
public virtual ContextMenu ContextMenu {get; set;}
 get_ContextMenu();
set_ContextMenu(value);
public:
virtual property ContextMenu^ ContextMenu {
   ContextMenu^ get();
   void set (    ContextMenu^ value);
}

Property Value

The context menu of this AnnAutomationObject.
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 System.Windows.Forms.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.

Example
For an example, refer to AnnAutomationManager.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnAutomationObject Class
AnnAutomationObject Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.