Gets or sets the style of how items are displayed in the control.
[CategoryAttribute("Appearance")][DescriptionAttribute("Item styles.")]public Leadtools.Windows.Controls.ImageListItemStyle ItemStyle {get; set;}
<CategoryAttribute("Appearance")><DescriptionAttribute("Item styles.")>Public Property ItemStyle As Leadtools.Windows.Controls.ImageListItemStyle
[CategoryAttribute("Appearance")][DescriptionAttribute("Item styles.")]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.
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;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;}
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
<Windowxmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:Leadtools_Windows_Controls="clr-namespace:Leadtools.Windows.Controls;assembly=Leadtools.Windows.Controls"x:Class="ScrollStyle.Window1"x:Name="Window"Title="Window1"Width="640" Height="480" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic"><DockPanel><Leadtools_Windows_Controls:ImageList Margin="8,46,8,196" HorizontalContentAlignment="Center" VerticalContentAlignment="Top"Orientation="Vertical" ShowText="False" ItemForeground="#FF000000" ItemStyle="Normal"ItemBorderThickness="2,2,2,2" ItemMargin="0,0,0,0" ItemSize="120,128"ItemImageSize="102,102" DockPanel.Dock="Left"><Leadtools_Windows_Controls:ImageList.ItemBackground><LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"><GradientStop Color="#FFFFFFFF" Offset="0.329"/><GradientStop Color="#FF415C85" Offset="0.548"/></LinearGradientBrush></Leadtools_Windows_Controls:ImageList.ItemBackground><Leadtools_Windows_Controls:ImageList.ItemSelectedBackground><LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"><GradientStop Color="#FFF7F7F7" Offset="0.038"/><GradientStop Color="#FFC9E00B" Offset="1"/></LinearGradientBrush></Leadtools_Windows_Controls:ImageList.ItemSelectedBackground><Leadtools_Windows_Controls:ImageListItem Source="file:///c:\users\Public\Documents\LEADTOOLS Images\cannon.jpg"><Leadtools_Windows_Controls:ImageListItem.Background><LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"><GradientStop Color="#FFFCFDFD" Offset="0.258"/><GradientStop Color="#FF2798D8" Offset="1"/><GradientStop Color="#FE000101" Offset="0.498"/><GradientStop Color="#FE01080B" Offset="0.058"/><GradientStop Color="#FEFFFFFF" Offset="0.738"/></LinearGradientBrush></Leadtools_Windows_Controls:ImageListItem.Background></Leadtools_Windows_Controls:ImageListItem><Leadtools_Windows_Controls:ImageListItem Source="file:///c:\users\Public\Documents\LEADTOOLS Images\cannon.jpg"><Leadtools_Windows_Controls:ImageListItem.Background><LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1"><GradientStop Color="#FF000000" Offset="0"/><GradientStop Color="#FFC1D836" Offset="1"/></LinearGradientBrush></Leadtools_Windows_Controls:ImageListItem.Background></Leadtools_Windows_Controls:ImageListItem><Leadtools_Windows_Controls:ImageListItem Content="ImageListItem" ScrollViewer.HorizontalScrollBarVisibility="Visible"Source="file:///c:\users\Public\Documents\LEADTOOLS Images\eye.gif"/></Leadtools_Windows_Controls:ImageList></DockPanel></Window>
|
Products |
Support |
Feedback: ItemStyle Property - Leadtools.Windows.Controls |
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.