Gets or sets the foreground color of the selected items in this RasterImageList.
public Color ItemSelectedForeColor {get; set;}
The foreground color of the selected items in this RasterImageList
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.
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();
}
RasterThumbnailBrowser Members
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document