LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
ImageSize Property
See Also 
Leadtools.Windows.Controls Namespace > IImageListItem Interface : ImageSize Property



Gets or sets the image size in pixels Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Property ImageSize As Size
Visual Basic (Usage)Copy Code
Dim instance As IImageListItem
Dim value As Size
 
instance.ImageSize = value
 
value = instance.ImageSize
C# 
Size ImageSize {get; set;}
C++/CLI 
property Size ImageSize {
   Size get();
   void set (    Size value);
}

Property Value

The image size in pixels.

Example

For C#/VB examples, refer to IImageListItem.

Remarks

The image size is the area inside the item where the image (in Source) will be drawn. This must be equal to or less than Width and Height.

The image will be drawn inside the rectangle define by ImageSize and centered inside Width and Height.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also