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






Gets or sets the colour of the CommandItem Text when the CommandItem is in the normal state.

Syntax

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

Return Value

A Color value, this property represents the colour of the Text on the CommandItem when the CommandItem is in the normal state. The default value of this property is the ForeColor of the CommandItem parent Control.

Remarks

The colour of the CommandItem Text depends on its state. For more information on the states of a CommandItem and how the state of a CommandItem affects its appearance please see CommandItem state.

The ForeColor property is an ambient property. An ambient property is a control property that, if not set, is retrieved from the parent control. For example, a Button will have the same ForeColor as its parent control by default. For more information about ambient properties, see the AmbientProperties class or the Control class overview.

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