Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

CellPicture Property, VirtualItem Object

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

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

Syntax

Get

VB.NETrefPictureObj = object.CellPicture(ByVal ColIndex As Short) As stdole.IPictureDisp
VBSet refPictureObj = object.CellPicture(ByVal ColIndex As Integer) As IPictureDisp
C#.NETstdole.IPictureDisp refPictureObj = object.get_CellPicture(short ColIndex);
VC++IPictureDisp* refPictureObj = object->GetCellPicture(short ColIndex);
CHRESULT object->get_CellPicture(short ColIndex, IPictureDisp** refPictureObj);

Put

VB.NETobject.let_CellPicture(ByVal ColIndex As Short, ByVal refPictureObj As stdole.IPictureDisp)
VBobject.CellPicture(ByVal ColIndex As Integer) = refPictureObj As IPictureDisp
C#.NETvoid object.let_CellPicture(short ColIndex, stdole.IPictureDisp refPictureObj);
VC++void object->PutCellPicture(short ColIndex, IPictureDisp* refPictureObj);
CHRESULT object->put_CellPicture(short ColIndex, IPictureDisp* refPictureObj);

PutRef

VB.NETobject.CellPicture(ByVal ColIndex As Short) = refPictureObj As stdole.IPictureDisp
VBSet object.CellPicture(ByVal ColIndex As Integer) = refPictureObj As IPictureDisp
C#.NETvoid object.set_CellPicture(short ColIndex, stdole.IPictureDisp refPictureObj);
VC++void object->PutRefCellPicture(short ColIndex, IPictureDisp* refPictureObj);
CHRESULT object->putref_CellPicture(short ColIndex, IPictureDisp* refPictureObj);

object

A VirtualItem object.

ColIndex

The zero-based column number. The combination of ColIndex and the VirtualItem event's RowIndex parameter describes an individual cell.

refPictureObj

Defines the graphic displayed as the item's cell 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.Cell.Image.Picture instead

The CellPicture property defines the graphic displayed as the item's cell graphic.

The VirtualItem.CellPicture property is used while handling a VirtualItem event to define the cell graphic for the cell described by ColIndex and the VirtualItem event's RowIndex parameter.

See Also VirtualItem Object | Object Hierarchy


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