Intersoft ClientUI Documentation
SetContextMenu Method
See Also  Send Feedback
Intersoft.Client.UI.Aqua Namespace > ContextMenuService Class : SetContextMenu Method






element
Target element.
value
Context menu.
Sets the context menu to target element.

Syntax

Visual Basic (Declaration) 
Public Shared Sub SetContextMenu( _
   ByVal element As UIElement, _
   ByVal value As UXContextMenu _
) 
Visual Basic (Usage)Copy Code
Dim element As UIElement
Dim value As UXContextMenu
 
ContextMenuService.SetContextMenu(element, value)
C# 
public static void SetContextMenu( 
   UIElement element,
   UXContextMenu value
)
Delphi 
public procedure SetContextMenu( 
    element: UIElement;
    value: UXContextMenu
); static; 
JScript 
public static function SetContextMenu( 
   element : UIElement,
   value : UXContextMenu
);
Managed Extensions for C++ 
public: static void SetContextMenu( 
   UIElement* element,
   UXContextMenu* value
) 
C++/CLI 
public:
static void SetContextMenu( 
   UIElement^ element,
   UXContextMenu^ value
) 

Parameters

element
Target element.
value
Context menu.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.