HeaderPane
Main
Hide
Share Link
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

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

Put

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

PutRef

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

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 11/03/2026 - (email)
© 2026 Softel vdm, Inc.