SftTree/OCX 7.0

SftPictureObject.NETImageObject Property

Softel vdm, Inc.

Defines the image object using a .NET image object (IUnknown interface).

Syntax       

Get

VB.NET

pUnknown = object.NETImageObject  As VT_UNKNOWN

VB

pUnknown = object.NETImageObject  As VT_UNKNOWN

C#.NET

VT_UNKNOWN pUnknown = object.NETImageObject;

VC++

VT_UNKNOWN pUnknown = object->NETImageObject;
VT_UNKNOWN pUnknown = object->GetNETImageObject();

C

HRESULT object->get_NETImageObject(VT_UNKNOWN* pUnknown);

Delphi

pUnknown := object.NETImageObject   : VT_UNKNOWN;

PutRef

VB.NET

object.NETImageObject = pUnknown  As VT_UNKNOWN

VB

Set object.NETImageObject = pUnknown  As VT_UNKNOWN

C#.NET

VT_UNKNOWN object.NETImageObject = pUnknown;

VC++

VT_UNKNOWN object->NETImageObject = pUnknown;
void object->PutRefNETImageObject(VT_UNKNOWN pUnknown);

C

HRESULT object->putref_NETImageObject(VT_UNKNOWN pUnknown);

Delphi

object.NETImageObject := pUnknown   : VT_UNKNOWN;

object

A SftPictureObject object.

pUnknown

Defines the image object using a .NET image object (IUnknown interface).

Comments

The NETImageObject property defines the image object using a .NET image object (IUnknown interface).

Typically, .NET applications use the NETImageObject property to define an image, C and C++ applications use BitmapHandle or Image, VB6 and other COM applications use the Picture property.

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

Use of this property requires the SftHelperComponent component, which is added to each project (see "Using SftTree/OCX with .NET").

See Also  SftPictureObject Object | Object Hierarchy


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