LEADTOOLS Windows Forms (Leadtools.WinForms assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
ItemSelectedForeColor Property
See Also 
Leadtools.WinForms Namespace > RasterImageList Class : ItemSelectedForeColor Property



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

Syntax

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
Dim instance As RasterImageList
Dim value As Color
 
instance.ItemSelectedForeColor = value
 
value = instance.ItemSelectedForeColor
C# 
[DescriptionAttribute("The color used to display the text of selected items.")]
[CategoryAttribute("Appearance")]
public Color ItemSelectedForeColor {get; set;}
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);
}

Property Value

The foreground color of the selected items in this RasterImageList

Example

For an example, refer to ItemBorderStyle

Remarks

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also