Leadtools.WinForms Namespace > RasterImageList Class : ItemSize Property |
[CategoryAttribute("Appearance")] [DescriptionAttribute("Size of each item (including image and text) in pixels.")] public Size ItemSize {get; set;}
'Declaration <CategoryAttribute("Appearance")> <DescriptionAttribute("Size of each item (including image and text) in pixels.")> Public Property ItemSize As Size
'Usage Dim instance As RasterImageList Dim value As Size instance.ItemSize = value value = instance.ItemSize
[CategoryAttribute("Appearance")] [DescriptionAttribute("Size of each item (including image and text) in pixels.")] public: property Size ItemSize { Size get(); void set ( Size value); }
The ItemSize specifies the overall size of each item in the RasterImageList control.
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.