Visual Basic (Declaration) | |
---|---|
<DescriptionAttribute("The color used to display the text of selected items.")> <CategoryAttribute("Appearance")> Public Property ItemSelectedForeColor As Color |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
[DescriptionAttribute("The color used to display the text of selected items.")] [CategoryAttribute("Appearance")] public Color ItemSelectedForeColor {get; set;} |
Managed Extensions for C++ | |
---|---|
[DescriptionAttribute("The color used to display the text of selected items.")] [CategoryAttribute("Appearance")] public: __property Color get_ItemSelectedForeColor(); public: __property void set_ItemSelectedForeColor( Color value ); |
C++/CLI | |
---|---|
[DescriptionAttribute("The color used to display the text of selected items.")] [CategoryAttribute("Appearance")] public: property Color ItemSelectedForeColor { Color get(); void set (Color value); } |
Return Value
The foreground color of the selected items in this RasterImageListFor an example, refer to ItemBorderStyle
How the ItemSelectedForeColor value is used to draw the items depends on the current ViewStyle. The following table lists all the cases:
ViewStyle | Description |
---|---|
RasterImageListViewStyle.Normal | Fills the background of selected items. |
RasterImageListViewStyle.Explorer | Draw the text of selected items as well as a rectangle around the image of selected items. |
RasterImageListViewStyle.Button | Not used. |
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