Visual Basic (Declaration) | |
---|---|
Public Overridable Property ContextMenu As ContextMenu |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public virtual ContextMenu ContextMenu {get; set;} |
C++/CLI | |
---|---|
public: virtual property ContextMenu ContextMenu { ContextMenu get(); void set (ContextMenu value); } |
XAML Property Element Usage | |
---|---|
<object> <object.ContextMenu> <ContextMenu .../> </object.ContextMenu> </object> |
XAML Property Element Usage | |
---|---|
<object> <object.ContextMenu> <ContextMenu .../> </object.ContextMenu> </object> |
Return Value
The context menu of this AnnAutomationObject.For C#/VB examples, refer to AnnAutomationManager.
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 WPF Annotations Automation.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family