SftTree/OCX 7.0

SftPictureObject.SetImageList Method

Softel vdm, Inc.

Defines the picture object as an ImageList image.

Syntax       

VB.NET

object.SetImageList(ByVal ImageList As Object, ByVal ImageIndex As Short)

VB

object.SetImageList(ByVal ImageList As Object, ByVal ImageIndex As Integer)

C#.NET

void object.SetImageList(object ImageList, short ImageIndex);

VC++

HRESULT object->SetImageList(LPDISPATCH ImageList, short ImageIndex);

C

HRESULT object->raw_SetImageList(LPDISPATCH ImageList, short ImageIndex);

Delphi

procedure object.SetImageList(ImageList : IDispatch, ImageIndex : Smallint);

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 window handle based ImageList control (Common Controls).

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

See Also  SftPictureObject Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com