HeaderPane
Main
Hide
Share Link
Print

SetImageList Method, SftPictureObject Object

Defines the picture object as an ImageList image.

Syntax

C#void object.SetImageList(object ImageList, short ImageIndex);
VB.NETobject.SetImageList(ByVal ImageList As Object, ByVal ImageIndex As Short)
C++HRESULT object->SetImageList(LPDISPATCH ImageList, short ImageIndex);
CHRESULT object->raw_SetImageList(LPDISPATCH ImageList, short ImageIndex);

object

A SftPictureObject object.

ImageList

An ImageList control (supporting the IImageList interface).

ImageIndex

The one-based index of the image in the ImageList control to be used as graphic.

Comments

The SetImageList method defines the picture object as an ImageList image.

SetImageList only supports ActiveX ImageList controls that offer an IImageList interface. GetImageListH and SetImageListH support a handle based ImageList (HIMAGELIST, Common Controls).

The SftPictureObject.Type property is set to sftTypeIDispatch. The SftPictureObject.ActualHeight and SftPictureObject.ActualWidth properties reflect the image size.

See Also SftPictureObject Object | Object Hierarchy


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