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
public Color ForeColor {get;}
public: __property Color get_ForeColor();
public function get ForeColor() : Color;

Property Value

The foreground Color of the item being drawn.


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.


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