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






Gets or sets the value indicating if the Height of the CommandItem is automatically adjusted according to its content.

Syntax

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

Return Value

System.Boolean value, this property determines if the Height of the CommandItem is automatically adjusted according to its content. If true then the CommandItem Height is increased or decreased as the height of its content increases and decreases; otherwise it is false and the Height is not adjusted.

Remarks

The properties AutomaticHeight and AutomaticSize are mutually exclusive. If AutomaticHeight is true, and AutomaticSize is set to true, then AutomaticHeight will become false. Similarly if AutomaticSize is true and AutomaticHeight is set true, then AutomaticSize will become false.

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