ICreate.Controls.Bars Send comments on this topic.
Menu Property
See Also 
ICreate.Controls.Bars Namespace > ButtonBarButton Class : Menu Property






Gets or sets the ContextMenuStrip assigned to the ButtonBarButton.

Syntax

Visual Basic (Declaration) 
Public Property Menu As ContextMenuStrip
Visual Basic (Usage)Copy Code
Dim instance As ButtonBarButton
Dim value As ContextMenuStrip
 
instance.Menu = value
 
value = instance.Menu
C# 
public ContextMenuStrip Menu {get; set;}
Delphi 
public read-write property Menu: ContextMenuStrip; 
JScript 
public function get,set Menu : ContextMenuStrip
Managed Extensions for C++ 
public: __property ContextMenuStrip get_Menu();
public: __property void set_Menu( 
   ContextMenuStrip value
);
C++/CLI 
public:
property ContextMenuStrip Menu {
   ContextMenuStrip get();
   void set (ContextMenuStrip value);
}

Return Value

A reference to a ContextMenuStrip, this property specifies the ContextMenuStrip assigned to the ButtonBarButton. The default value is null (Nothing in Visual Basic).

Remarks

The Menu is displayed when the ButtonBarButton is clicked or when the sub button, if present, is clicked. The location at which the Menu is shown is specified using the MenuPosition property. The MenuPosition is specified relative to the ButtonBarButton.

Requirements

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

See Also