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






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

Syntax

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

Return Value

A System.Boolean value, this property determines if the Size of the CommandItem is automatically adjusted according to its content. If true then the Size of the CommandItem is adjusted to fit its content; otherwise it is false and the Size 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. Note if AutomaticSize is true then the Size of the CommandItem is adjusted so that the Text does not wrap.

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