ItemSelectedBackColor Property (RasterThumbnailBrowser)

Summary

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

Syntax

C#
C++
public Color ItemSelectedBackColor {get; set;} 
public: 
property Color ItemSelectedBackColor { 
   Color get(); 
   void set (    Color ); 
} 

Property Value

The item background color of the selected items in this RasterImageList

Remarks

How the ItemSelectedBackColor 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 When an item is selected, this color is used to fill the background behind the text of the item and to draw a rectangle around the image.
RasterImageListViewStyle.Button Not used.

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

Example

C#
using Leadtools.WinForms; 
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.Drawing; 
 
public void RasterImageList_ItemBorderStyle(RasterImageList imageList) 
{ 
   // Apply our custom item styles 
 
   imageList.BeginUpdate(); 
 
   // Make sure we are using Normal style 
   imageList.ViewStyle = RasterImageListViewStyle.Normal; 
 
   // Draw a border around the item 
   imageList.ItemBorderStyle = BorderStyle.FixedSingle; 
 
   // Draw a border around the image inside each item 
   imageList.ItemImageBorderStyle = BorderStyle.FixedSingle; 
 
   // Leave 10 pixels between each adjucent items 
   imageList.ItemSpacingSize = new Size(10, 10); 
 
   // Apply a dark cyan/white color scheme 
   imageList.ItemForeColor = Color.DarkCyan; 
   imageList.ItemSelectedForeColor = Color.White; 
   imageList.ItemBackColor = Color.White; 
   imageList.ItemSelectedBackColor = Color.DarkCyan; 
 
   imageList.EndUpdate(); 
} 

Requirements

Target Platforms

See Also

Reference

RasterThumbnailBrowser Class

RasterThumbnailBrowser Members

Help Version 22.0.2023.2.9
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.WinForms Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.