JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Immediate Solutions: Using the ImageList Class

As discussed in the In Depth section of this chapter, image lists, which are components and do not appear at run time, store images for use by various controls, including list views, tree views, toolbars, tab controls, checkboxes, buttons, radio buttons, and labels. Here is the class hierarchy of the ImageList component:

Object
   MarshalByRefObject
      Component
         ImageList

You can find the notable public properties of ImageList objects in Table 10.1, and the notable methods in Table 10.2.

Table 10.1: Noteworthy public properties of ImageList objects.

Property

Means

ColorDepth

Gets the color depth for this image list.

Handle

Gets the handle for this image list.

Images

Gets an ImageCollection object for this image list.

ImageSize

Gets/sets the image size for images in the list.

TransparentColor

Gets/sets the transparent color for this list.

Table 10.2: Noteworthy public methods of ImageList objects.

Method

Means

Draw

Draws the given image.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor