Leadtools.Windows.Controls Namespace > ImageList Class : ItemImageSize Property |
[CategoryAttribute("Appearance")] [DescriptionAttribute("Size of each item image in pixels.")] public Size ItemImageSize {get; set;}
'Declaration <CategoryAttribute("Appearance")> <DescriptionAttribute("Size of each item image in pixels.")> Public Property ItemImageSize As Size
'Usage Dim instance As ImageList Dim value As Size instance.ItemImageSize = value value = instance.ItemImageSize
[CategoryAttribute("Appearance")] [DescriptionAttribute("Size of each item image in pixels.")] public: property Size ItemImageSize { Size get(); void set ( Size value); }
Use the ItemSize property to set the overall item size. The image will be drawn inside the rectangle define by ItemImageSize and centered inside ItemSize.
Changing this property will make this control loop through all the items and setting IImageListItem.ImageSize accordingly.
For XAML example, refer to ItemBorderBrush.
For C#/VB examples, refer to ItemBorderBrush.