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






Gets or sets the position at which the Menu is displayed.

Syntax

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

Return Value

A Position value, this property determines the position at which the Menu is displayed. The position is specified relative to the CommandItem. The default value for this property is None.

Remarks

The Menu can popup above the CommandItem, below the CommandItem, to the left or right of the CommandItem. A small arrowhead is drawn on the CommandItem to indicate the position of the Menu. In the case of a CommandButton with a sub button, the arrowhead is drawn on the sub button.

The table below shows a CommandButton, with and without a sub button, and CommandLink for all the different values of the Position property.

Position CommandButton without sub button CommandButton with sub button CommandLink
None
Top
Bottom
Left
Right

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