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 |
---|---|
|
C# | |
---|---|
[DescriptionAttribute("The color used to display the text of un-selected item.")] [CategoryAttribute("Appearance")] public Color ItemForeColor {get; set;} |
Managed Extensions for C++ | |
---|---|
[DescriptionAttribute("The color used to display the text of un-selected item.")] [CategoryAttribute("Appearance")] public: __property Color get_ItemForeColor(); public: __property void set_ItemForeColor( Color value ); |
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); } |
Return 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family