Leadtools.WinForms Namespace > RasterImageList Class : ItemSize Property |
[DescriptionAttribute("Size of each item (including image and text) in pixels.")] [CategoryAttribute("Appearance")] public Size ItemSize {get; set;}
'Declaration <DescriptionAttribute("Size of each item (including image and text) in pixels.")> <CategoryAttribute("Appearance")> Public Property ItemSize As Size
'Usage Dim instance As RasterImageList Dim value As Size instance.ItemSize = value value = instance.ItemSize
[DescriptionAttribute("Size of each item (including image and text) in pixels.")] [CategoryAttribute("Appearance")] public Size ItemSize {get; set;}
DescriptionAttribute("Size of each item (including image and text) in pixels.") CategoryAttribute("Appearance") get_ItemSize();
set_ItemSize(value);
[DescriptionAttribute("Size of each item (including image and text) in pixels.")] [CategoryAttribute("Appearance")] 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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2