Gets or sets the style of how items are displayed in the control.
public ImageListItemStyle ItemStyle { get; set; } Public Property ItemStyle As Leadtools.Windows.Controls.ImageListItemStyle public:property Leadtools.Windows.Controls.ImageListItemStyle ItemStyle {Leadtools.Windows.Controls.ImageListItemStyle get();void set ( Leadtools.Windows.Controls.ImageListItemStyle );}
A ImageListItemStyle enumeration that specifies how the items are displayed in the control. Default value is ImageListItemStyle.Normal.
The ImageList control contains pre-defined styles for various ways to draw the items. It will set these predefined styles in the ItemContainerStyle property. When ImageListItemStyle.UserStyle is specified, it is up to you to set the required styles in ItemContainerStyle.
For more information, refer to the ImageListItemStyle enumeration.
using Leadtools.Help;using Leadtools.Windows.Controls;using Leadtools;using Leadtools.Codecs;/// This example will show the different view styles of a <see cref="ImageList"/> control.public void ImageList_ItemStyle(ImageList imageList){// Save the current view styleImageListItemStyle currentStyle = imageList.ItemStyle;// Show all the different styles availableArray a = Enum.GetValues(typeof(ImageListItemStyle));foreach (ImageListItemStyle style in a){imageList.ItemStyle = style;MessageBox.Show("ItemStyle = " + style.ToString());}// Restore original view styleimageList.ItemStyle = currentStyle;}
Imports Leadtools.Windows.ControlsImports Leadtools.CodecsImports Leadtools''' This example will show the different view styles of a <see cref="ImageList"/> control.Public Sub ImageList_ItemStyle(ByVal imageList As ImageList)' Save the current view styleDim currentStyle As ImageListItemStyle = imageList.ItemStyle' Show all the different styles availableDim a As Array = System.Enum.GetValues(GetType(ImageListItemStyle))For Each style As ImageListItemStyle In aimageList.ItemStyle = styleMessageBox.Show("ItemStyle = " & style.ToString())Next style' Restore original view styleimageList.ItemStyle = currentStyleEnd Sub
using Leadtools.Help;using Leadtools.Windows.Controls;/// This example will show the different view styles of a <see cref="ImageList"/> control.public void ImageList_ItemStyle(ImageList imageList){// Save the current view styleImageListItemStyle currentStyle = imageList.ItemStyle;// Show all the different styles availableArray a = GetValues(typeof(ImageListItemStyle));foreach (ImageListItemStyle style in a){imageList.ItemStyle = style;MessageBox.Show("ItemStyle = " + style.ToString());}// Restore original view styleimageList.ItemStyle = currentStyle;}
Imports Leadtools.Windows.Controls''' This example will show the different view styles of a <see cref="ImageList"/> control.Public Sub ImageList_ItemStyle(ByVal imageList As ImageList)' Save the current view styleDim currentStyle As ImageListItemStyle = imageList.ItemStyle' Show all the different styles availableDim a As Array = GetValues(GetType(ImageListItemStyle))For Each style As ImageListItemStyle In aimageList.ItemStyle = styleMessageBox.Show("ItemStyle = " & style.ToString())Next style' Restore original view styleimageList.ItemStyle = currentStyleEnd Sub
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
