Item property (ILEADRasterImgList)
ILEADRasterImageListItem Item(long Index) | |
Overview |
Refer to Using the Image List Control. |
Remarks
(Runtime-only) This property returns an item from the ImageList Control's collection of items.
The index of the first item is 0, and the index of the last item is Count -1.
The Item object has the following properties (attributes):
Property |
Type |
Description |
Bitmap |
Long |
The handle of the item’s bitmap |
Text |
BSTR |
The item’s text attribute. |
Data |
Long |
Extra data for user-defined use. |
Selected |
VARIANT_BOOL |
Selected flag. True if item is selected. False if item is not selected. |
TextExt |
BSTR |
The item’s extended text attribute. |
The Bitmap property can be used to copy or change the image that an item is displaying.
The Text property can be displayed as a label for the item if DisplayItemText is set to True.
The Data property can be used to store extra, user-defined information for each item.
The Selected property is used to indicate if an item is selected or not. When an item is selected, it is displayed according to the value set in the SelectionStyle and SelectionColor properties.
The TextExt property can be used to store an extra text string for the item. For example, you can store the filename in the Text property (which gets displayed in the control), and the fully qualified path and filename in the TextExt property.
See Also