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




The image associated with this RasterImageListItem object.

Syntax

Visual Basic (Declaration) 
Public Property Image As RasterImage
Visual Basic (Usage)Copy Code
Dim instance As RasterImageListItem
Dim value As RasterImage
 
instance.Image = value
 
value = instance.Image
C# 
public RasterImage Image {get; set;}
Managed Extensions for C++ 
public: __property RasterImage get_Image();
public: __property void set_Image( 
   RasterImage value
);
C++/CLI 
public:
property RasterImage Image {
   RasterImage get();
   void set (RasterImage value);
}

Return Value

An RasterImage object associated with this RasterImageListItem object. Default value is null (Nothing in Visual Basic).

Example

For an example, refer to Image.

Remarks

The Page property specfies the 1-based page number to view from this image.

The RasterImageList control will paint this image into the item surface. If the item does not have an image, the value of this property is null (Nothing in Visual Basic) and, nothing is painted.

The RasterImageList control paints the image in the following manner:

  • If the image size is less than or equal to the ItemImageSize value, the image is painted with its original size only centered into the item surface.
  • If the image size is grater than the ItemImageSize value, the image is stretched to this smaller size but keeping the aspect ratio the same.
  • It is recommended that you populate the items with "thumbnail" images. This will increase the performance of the item painting operation. In this case, you can use the Tag or FileName properties to store the information needed to load the image in its original size when requested.

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