HeaderPane
Main
Hide
Share Link
Print

SftBoxItem.Picture Property

Defines the item graphic displayed in this item.

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

Syntax

Get

C#stdole.IPictureDisp refPictureObj = object.Picture;
VB.NETrefPictureObj = object.Picture As stdole.IPictureDisp
C++IPictureDisp* refPictureObj = object->GetPicture();
CHRESULT object->get_Picture(IPictureDisp** refPictureObj);
VBSet refPictureObj = object.Picture As IPictureDisp

Put

C#void object.let_Picture(stdole.IPictureDisp refPictureObj);
VB.NETobject.let_Picture(ByVal refPictureObj As stdole.IPictureDisp)
C++void object->PutPicture(IPictureDisp* refPictureObj);
CHRESULT object->put_Picture(IPictureDisp* refPictureObj);
VBobject.Picture = refPictureObj As IPictureDisp

PutRef

C#stdole.IPictureDisp object.Picture = refPictureObj;
VB.NETobject.Picture = refPictureObj As stdole.IPictureDisp
C++void object->PutRefPicture(IPictureDisp* refPictureObj);
CHRESULT object->putref_Picture(IPictureDisp* refPictureObj);
VBSet object.Picture = refPictureObj As IPictureDisp

object

A SftBoxItem object.

refPictureObj

Defines the item graphic displayed in this item.

Comments

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

The Picture property defines the item graphic displayed in this item.

The Item.Image property is used to override the default item graphic defined using the Items.ItemImageExpandable, Items.ItemImageExpanded and Items.ItemImageLeaf properties.

In a fixed height combo box control, all item picture graphics (i.e. all bitmaps) must be the same size (height and width). The dimensions of the graphics are used to calculate the minimum required height for all items, so graphics and text are never clipped vertically. To change the size of all item graphics used, they must be removed first using the Items.ClearItemImages method.

In a variable height combo box control, the graphics can be of varying sizes. The item height is automatically adjusted so graphics are never clipped vertically.

To remove an individual item picture, set the property to Nothing (0, null, NULL). If the default item graphics Items.ItemImageExpandable, Items.ItemImageExpanded and Items.ItemImageLeaf have been defined, this restores the default picture.

If the image object refImageObj defines a bitmap, the top, left pixel of the bitmap must contain the bitmap's background color. This color will be replaced throughout the bitmap with the actual background (see Bitmap Transparency).

The VAlignStyle property can be used to define the vertical alignment of item graphics.

See Also SftBoxItem Object | Object Hierarchy


Last Updated 11/04/2026 - (email)
© 2026 Softel vdm, Inc.