SftTree/OCX 7.0

VirtualItem.SetItemPictureImage Method

Softel vdm, Inc.

Defines the graphic displayed as the item's item graphic.

Deprecated - Provided for compatibility with earlier versions only - Use VirtualItem.Item.Image.SetImageList instead

Syntax       

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);

Delphi

procedure object.SetItemPictureImage(ImgListObj : IDispatch, ImgIndex : Smallint);

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.

Comments

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


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com