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






Gets or sets the text displayed on the BarItemCommand.

Syntax

Visual Basic (Declaration) 
Public Property Text As String
Visual Basic (Usage)Copy Code
Dim instance As BarItemCommand
Dim value As String
 
instance.Text = value
 
value = instance.Text
C# 
public string Text {get; set;}
Delphi 
public read-write property Text: String; 
JScript 
public function get,set Text : String
Managed Extensions for C++ 
public: __property string* get_Text();
public: __property void set_Text( 
   string* value
);
C++/CLI 
public:
property String^ Text {
   String^ get();
   void set (String^ value);
}

Return Value

A System.String value, this property is the text drawn on the BarItemCommand.

Remarks

A BarItemCommand can contain Text and/or an Image. The Image, if present, is displayed on the left of the BarItemCommand. The Text, if present, is displayed after the Image. The size of the BarItemCommand is adjusted according to the Image and the Text. For a SideBar all BarItemCommand instances are the same height. For a TaskBar the height of the BarItemCommand instances are independant of the other items.

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