This documentation is archived and is not being maintained.

DrawItemEventArgs.ForeColor Property

Gets the foreground color of the of the item being drawn.

[Visual Basic]
Public ReadOnly Property ForeColor As Color
[C#]
public Color ForeColor {get;}
[C++]
public: __property Color get_ForeColor();
[JScript]
public function get ForeColor() : Color;

Property Value

The foreground Color of the item being drawn.

Remarks

If the item's state is DrawItemState.Selected, the ForeColor is set to SystemColors.HighlightText. If the item's state is not Selected, then the ForeColor property is set to SystemColors.WindowText.

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

DrawItemEventArgs Class | DrawItemEventArgs Members | System.Windows.Forms Namespace | Color

Show: