LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly)
LEAD Technologies, Inc

ItemImageSize Property






Gets or sets the item image size in pixels. .NET support Silverlight support
Syntax
[DescriptionAttribute("Size of each item image in pixels.")]
[CategoryAttribute("Appearance")]
public Size ItemImageSize {get; set;}
'Declaration
 
<DescriptionAttribute("Size of each item image in pixels.")>
<CategoryAttribute("Appearance")>
Public Property ItemImageSize As Size
'Usage
 
Dim instance As ImageList
Dim value As Size
 
instance.ItemImageSize = value
 
value = instance.ItemImageSize
[DescriptionAttribute("Size of each item image in pixels.")]
[CategoryAttribute("Appearance")]
public Size ItemImageSize {get; set;}
DescriptionAttribute("Size of each item image in pixels.")
CategoryAttribute("Appearance")
 get_ItemImageSize();
set_ItemImageSize(value);
[DescriptionAttribute("Size of each item image in pixels.")]
[CategoryAttribute("Appearance")]
public:
property Size ItemImageSize {
   Size get();
   void set (    Size value);
}

Property Value

The size of the image box inside this item in pixels. Default value is 128, 102.
Remarks

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.

Example

For XAML example, refer to ItemBorderBrush.

For C#/VB examples, refer to ItemBorderBrush.

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

ImageList Class
ImageList Members

 

 


Products | Support | Contact Us | Copyright Notices

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