Visual Basic (Declaration) | |
---|---|
Public Property SelectedForeColor As Color |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As ListBoxRenderer Dim value As Color instance.SelectedForeColor = value value = instance.SelectedForeColor |
C# | |
---|---|
public Color SelectedForeColor {get; set;} |
Property Value
Color object containing the text color for selected cellsSet this property to a color value to display a different text color in selected list box items.
Set the background color for the selected list box items using the SelectedBackColor property.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family