LEADTOOLS Windows Forms (Leadtools.WinForms assembly)
LEAD Technologies, Inc

ItemSize Property (RasterThumbnailBrowser)






Gets or sets the size of each RasterImageListItem in the control.
Syntax
[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 RasterThumbnailBrowser
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);
}

Property Value

A System.Drawing.Size structure that specifies the size of each RasterImageListItem in this RasterImageList in pixels.
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.

Example
For an example, refer to RasterImageList.DrawItem event.
Requirements

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

See Also

Reference

RasterThumbnailBrowser Class
RasterThumbnailBrowser Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.