Leadtools.Windows.Controls Send comments on this topic. | Back to Introduction - LEADTOOLS WPF | Help Version 16.5.9.25
SelectedForeground Property
See Also 
Leadtools.Windows.Controls Namespace > ImageListItem Class : SelectedForeground Property





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

Syntax

Visual Basic (Declaration) 
Public Property SelectedForeground As Brush
Visual Basic (Usage)Copy Code
Dim instance As ImageListItem
Dim value As Brush
 
instance.SelectedForeground = value
 
value = instance.SelectedForeground
C# 
public Brush SelectedForeground {get; set;}
C++/CLI 
public:
property Brush SelectedForeground {
   Brush get();
   void set (Brush value);
}
XAML Syntax 
For XAML information, see the Brush type.

Dependencies Property Information 

Identifier field

SelectedForegroundProperty

Metadata properties set to true

None

XAML Syntax 
For XAML information, see the Brush type.

Dependencies Property Information 

Identifier field

SelectedForegroundProperty

Metadata properties set to true

None

Return Value

The foreground color of the selected items in this ImageList

Example

For XAML example, refer to ImageSize.

For C#/VB examples, refer to ImageSize.

Remarks

How the ItemSelectedForeColor 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 selected items.
ImageListViewStyle.ExplorerDraw the text of selected items as well as a rectangle around the image of selected 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