Visual Basic (Declaration) | |
---|---|
<DescriptionAttribute("The color used to display the text of un-selected item.")> <CategoryAttribute("Appearance")> Public Property ItemForeColor As Color |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As RasterImageList Dim value As Color instance.ItemForeColor = value value = instance.ItemForeColor |
C# | |
---|---|
[DescriptionAttribute("The color used to display the text of un-selected item.")] [CategoryAttribute("Appearance")] public Color ItemForeColor {get; set;} |
C++/CLI | |
---|---|
[DescriptionAttribute("The color used to display the text of un-selected item.")] [CategoryAttribute("Appearance")] public: property Color ItemForeColor { Color get(); void set ( Color value); } |
Property Value
The foreground color of the un-selected items in this RasterImageListFor an example, refer to ItemBorderStyle
How the ItemForeColor value is used to draw the items depends on the current ViewStyle. The following table lists all the cases:
ViewStyle | Description |
---|---|
RasterImageListViewStyle.Normal | Draw the text of un-selected items. |
RasterImageListViewStyle.Explorer | Draw the text of un-selected items. |
RasterImageListViewStyle.Button | Draw the text of all items. |
For more information about item appearance, refer to RasterImageList Appearance.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7