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






Gets or sets the colour of the CommandItem Text when the CommandItem is pressed.

Syntax

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

Return Value

A Color value, this property specifies the colour of the Text on the CommandItem when it is pressed. If PressedForeColor is Color.Empty then ForeColor is used. The default value is Color.Empty.

Remarks

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

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