Leadtools.Windows.Controls Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.03.25
ItemForeground Property
See Also 
Leadtools.Windows.Controls Namespace > ImageList Class : ItemForeground Property





Gets or sets the foreground color of the items in this ImageList. This is a dependency property.

Syntax

Visual Basic (Declaration) 
Public Property ItemForeground As Brush
Visual Basic (Usage)Copy Code
Dim instance As ImageList
Dim value As Brush
 
instance.ItemForeground = value
 
value = instance.ItemForeground
C# 
public Brush ItemForeground {get; set;}
Managed Extensions for C++ 
public: __property Brush get_ItemForeground();
public: __property void set_ItemForeground( 
   Brush value
);
C++/CLI 
public:
property Brush ItemForeground {
   Brush get();
   void set (Brush value);
}
XAML 
For XAML information, see the Brush type.

Dependency Property Information 

Identifier field

ItemSelectedForegroundProperty

Metadata properties set to true

None

Return Value

The foreground color of the items in this ImageList

Example

For C#/VB examples, refer to ItemBorderBrush.

Remarks

How the ItemSelectedForeground value is used to draw the items depends on the current ViewStyle. The following table lists all the cases:
ViewStyleDescription
ImageListViewStyle.NormalFills the background of the items.
ImageListViewStyle.ExplorerDraws the text of items as well as a rectangle around the image of items.
ImageListViewStyle.ButtonNot used.

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

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also