Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

ItemPicture Property, VirtualItem Object

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

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

Syntax

Get

VB.NETrefPictureObj = object.ItemPicture As stdole.IPictureDisp
VBSet refPictureObj = object.ItemPicture As IPictureDisp
C#.NETstdole.IPictureDisp refPictureObj = object.ItemPicture;
VC++IPictureDisp* refPictureObj = object->GetItemPicture();
CHRESULT object->get_ItemPicture(IPictureDisp** refPictureObj);

Put

VB.NETobject.let_ItemPicture(ByVal refPictureObj As stdole.IPictureDisp)
VBobject.ItemPicture = refPictureObj As IPictureDisp
C#.NETvoid object.let_ItemPicture(stdole.IPictureDisp refPictureObj);
VC++void object->PutItemPicture(IPictureDisp* refPictureObj);
CHRESULT object->put_ItemPicture(IPictureDisp* refPictureObj);

PutRef

VB.NETobject.ItemPicture = refPictureObj As stdole.IPictureDisp
VBSet object.ItemPicture = refPictureObj As IPictureDisp
C#.NETstdole.IPictureDisp object.ItemPicture = refPictureObj;
VC++void object->PutRefItemPicture(IPictureDisp* refPictureObj);
CHRESULT object->putref_ItemPicture(IPictureDisp* refPictureObj);

object

A VirtualItem object.

refPictureObj

Defines the graphic displayed as the item's item graphic. The refPictureObj object must represent a bitmap, icon or Windows metafile. If a bitmap is used, the top, left pixel of each graphic must contain the background color. This color will be replaced by the actual background when the graphic is displayed. For information about picture properties, please visit the applicable section "Using SftTree/OCX with ...".

Comments

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

The ItemPicture property defines the graphic displayed as the item's item graphic.

The VirtualItem.ItemPicture property is used while handling a VirtualItem event to define the item's item graphic. The item is described by the VirtualItem event's RowIndex parameter.

See Also VirtualItem Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.