Defines the graphic displayed as the item's item graphic.
Deprecated - Provided for compatibility with earlier versions only - Use VirtualItem.Item.Image.SetImageList instead
| VB.NET | object.SetItemPictureImage(ByVal ImgListObj As Object, ByVal ImgIndex As Short) |
| VB | object.SetItemPictureImage(ByVal ImgListObj As Object, ByVal ImgIndex As Integer) |
| C#.NET | void object.SetItemPictureImage(object ImgListObj, short ImgIndex); |
| VC++ | HRESULT object->SetItemPictureImage(LPDISPATCH ImgListObj, short ImgIndex); |
| C | HRESULT object->raw_SetItemPictureImage(LPDISPATCH ImgListObj, short ImgIndex); |
object
A VirtualItem object.
ImgListObj
An ImageList control (supporting the IImageList interface). This ImageList object contains the graphics used to display the item graphic.
ImgIndex
The one-based index of the image in the ImageList control to be used as the item graphic.
Deprecated - Provided for compatibility with earlier versions only - Use VirtualItem.Item.Image.SetImageList instead
The SetItemPictureImage method defines the graphic displayed as the item's item graphic.
The VirtualItem.SetItemPictureImage property is used while handling a VirtualItem event to define the graphic displayed as the item's item graphic. The item is described by the VirtualItem event's RowIndex parameter.
See Also VirtualItem Object | Object Hierarchy