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.NET | refPictureObj = object.CellPicture(ByVal ColIndex As Short) As stdole.IPictureDisp |
| C++ | IPictureDisp* refPictureObj = object->GetCellPicture(short ColIndex); |
| C | HRESULT object->get_CellPicture(short ColIndex, IPictureDisp** refPictureObj); |
| VB | Set refPictureObj = object.CellPicture(ByVal ColIndex As Integer) As IPictureDisp |
Put
| C# | void object.let_CellPicture(short ColIndex, stdole.IPictureDisp refPictureObj); |
| VB.NET | object.let_CellPicture(ByVal ColIndex As Short, ByVal refPictureObj As stdole.IPictureDisp ) |
| C++ | void object->PutCellPicture(short ColIndex, IPictureDisp* refPictureObj); |
| C | HRESULT object->put_CellPicture(short ColIndex, IPictureDisp* refPictureObj); |
| VB | object.CellPicture(ByVal ColIndex As Integer) = refPictureObj As IPictureDisp |
PutRef
| C# | void object.set_CellPicture(short ColIndex, stdole.IPictureDisp refPictureObj); |
| VB.NET | object.CellPicture(ByVal ColIndex As Short) = refPictureObj As stdole.IPictureDisp |
| C++ | void object->PutRefCellPicture(short ColIndex, IPictureDisp* refPictureObj); |
| C | HRESULT object->putref_CellPicture(short ColIndex, IPictureDisp* refPictureObj); |
| VB | Set object.CellPicture(ByVal ColIndex As Integer) = refPictureObj As IPictureDisp |
object
A 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 Object | Object Hierarchy