Leadtools.Windows.Controls Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.03.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;}
Managed Extensions for C++ 
public: __property Brush get_SelectedForeground();
public: __property void set_SelectedForeground( 
   Brush value
);
C++/CLI 
public:
property Brush SelectedForeground {
   Brush get();
   void set (Brush value);
}
XAML 
For XAML information, see the Brush type.

Dependency 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 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