HeaderPane
Main
Hide
Share Link
Print

Type Property, SftPictureObject Object

Returns the defined image type.

Syntax

Get

C#SftPictureTypeConstants Style = object.Type;
VB.NETStyle = object.Type As SftPictureTypeConstants
C++enum SftPictureTypeConstants Style = object->Type;
enum SftPictureTypeConstants Style = object->GetType();
CHRESULT object->get_Type(enum SftPictureTypeConstants* Style);
VBStyle = object.Type As SftPictureTypeConstants

object

A SftPictureObject object.

Style

Returns the defined image type.

NameValueDescription
sftTypeNone0None - The SftPictureObject is empty.
sftTypeIDispatch1IDispatch - Contains an OLE Picture object (supporting the IPicture or IPictureDisp interface).
sftTypeBitmap2Bitmap - Contains a Windows bitmap.
sftTypeIcon3Icon - Contains an icon.
sftTypeImageList4ImageList - Contains an image from an ImageList control.
sftTypeColorSample5Color Sample - Contains a color sample.
sftTypeBuiltin6Built-In Appearance - Contains a predefined built-in image.
sftTypeImageListH7ImageListH - Contains an image from an ImageList control.
sftTypeGDIPlus8GDIPlus - Contains a GDI+ image

Comments

The Type property returns the defined image type.

The Type property reflects the type of the current image. It is modified by assigning an image to the SftPictureObject using a property such as SftPictureObject.Appearance, SftPictureObject.BitmapHandle, SftPictureObject.IconHandle, SftPictureObject.SetColorSample, etc.

See Also SftPictureObject Object | Object Hierarchy


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