Leadtools.WinForms Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
ItemSize Property
See Also 
Leadtools.WinForms Namespace > RasterImageList Class : ItemSize Property



Gets or sets the size of each RasterImageListItem in the control.

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Size of each item (including image and text) in pixels.")>
<CategoryAttribute("Appearance")>
Public Property ItemSize As Size
Visual Basic (Usage)Copy Code
Dim instance As RasterImageList
Dim value As Size
 
instance.ItemSize = value
 
value = instance.ItemSize
C# 
[DescriptionAttribute("Size of each item (including image and text) in pixels.")]
[CategoryAttribute("Appearance")]
public Size ItemSize {get; set;}
C++/CLI 
[DescriptionAttribute("Size of each item (including image and text) in pixels.")]
[CategoryAttribute("Appearance")]
public:
property Size ItemSize {
   Size get();
   void set (Size value);
}

Return Value

A Size structure that specifies the size of each RasterImageListItem in this RasterImageList in pixels.

Example

For an example, refer to DrawItem event.

Remarks

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also