Gets or sets the border style to draw around the RasterImageListItem in the control.
[DescriptionAttribute("Border type to draw around each item.")]
[CategoryAttribute("Appearance")]
public BorderStyle ItemBorderStyle {get; set;}
<DescriptionAttribute("Border type to draw around each item.")>
<CategoryAttribute("Appearance")>
Public Property ItemBorderStyle As BorderStyle
[DescriptionAttribute("Border type to draw around each item.")]
[CategoryAttribute("Appearance")]
public:
property BorderStyle ItemBorderStyle {
BorderStyle get();
void set ( BorderStyle );
}
A BorderStyle enumeration that specifies the border to draw around the RasterImageListItem in the control.
The ItemBorderStyle property is only supported when the value of the ViewStyle is set to RasterImageListViewStyle.Normal
When changing any of the item sizes or styles, you should pay special attention to the values you specify, in general, you should setup ItemSize to be large enough to accommodate ItemImageSize plus room for ItemBorderStyle and ItemImageBorderStyle. If you set the ShowItemText property to true, then you should also accommodate room for the item text in your calculations.
For more information about item appearance, refer to RasterImageList Appearance.
This example changes the border style around the image list items.
Imports Leadtools.WinForms
Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.Drawing
Public Sub RasterImageList_ItemBorderStyle(ByVal imageList As RasterImageList)
' 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()
End Sub
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();
}
Products |
Support |
Feedback: ItemBorderStyle Property (RasterImageList) - Leadtools.WinForms |
Introduction |
Help Version 19.0.2017.3.22
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.