LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
CreateDefaultObjectContextMenu Method
See Also 
Leadtools.Windows.Annotations Namespace > AnnAutomationManager Class : CreateDefaultObjectContextMenu Method



id
The ID of the AnnAutomationObject.

The CreateDefaultObjectContextMenu Method supports WPF/Silverlight.

The CreateDefaultObjectContextMenu Method is available in LEADTOOLS Document and Medical Imaging toolkits.

id
The ID of the AnnAutomationObject.
Creates the context menu associated with a certain ID.

Syntax

Visual Basic (Declaration) 
Public Shared Function CreateDefaultObjectContextMenu( _
   ByVal id As Integer _
) As ContextMenu
Visual Basic (Usage)Copy Code
Dim id As Integer
Dim value As ContextMenu
 
value = AnnAutomationManager.CreateDefaultObjectContextMenu(id)
C# 
public static ContextMenu CreateDefaultObjectContextMenu( 
   int id
)
C++/CLI 
public:
static ContextMenu^ CreateDefaultObjectContextMenu( 
   int id
) 

Parameters

id
The ID of the AnnAutomationObject.

Return Value

The default System.Windows.Controls.ContextMenu used in AnnAutomationObject.ContextMenu.

Example

For C#/VB examples, refer to AnnAutomationManager.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

CreateDefaultObjectContextMenu requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.