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






Gets or sets the color of the TaskBarItem Text when in the normal state.

Syntax

Visual Basic (Declaration) 
Public Property ForeColor As Color
Visual Basic (Usage)Copy Code
Dim instance As TaskBarItem
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 specifies the colour of the TaskBarItem Text when the TaskBarItem is in the normal state. The default value is Color.Empty.

Remarks

ForeColor is an ambient property. If its value is Color.Empty then the ForeColor property of the Parent TaskBar determines the colour of the TaskBarItem Text. If ForeColor is not Color.Empty then it determines the colour of the Text.

The parenting TaskBar HotTrackForeColor property specifies the colour of the Text when the TaskBarItem is hot. The parenting TaskBar PressedForeColor property specifies the colour of the Text when the TaskBarItem is pressed.

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