Leadtools.WinForms Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
ItemForeColor Property
See Also 
Leadtools.WinForms Namespace > RasterImageList Class : ItemForeColor Property




Gets or sets the foreground color of the un-selected items in this RasterImageList

Syntax

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;}
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 RasterImageList

Example

For an example, refer to ItemBorderStyle

Remarks

How the ItemForeColor value is used to draw the items depends on the current ViewStyle. The following table lists all the cases:
ViewStyleDescription
RasterImageListViewStyle.NormalDraw the text of un-selected items.
RasterImageListViewStyle.ExplorerDraw the text of un-selected items.
RasterImageListViewStyle.ButtonDraw the text of all items.

For more information about item appearance, refer to RasterImageList Appearance.

Requirements

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

See Also