Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

Type Property, SftPictureObject Object

Returns the defined image type.

Syntax

Get

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

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 08/13/2020 - (email)
© 2024 Softel vdm, Inc.