HeaderPane
Main
Hide
Share Link
Print

NETImageObject Property, SftPictureObject Object

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

Syntax

Get

C#object pUnknown = object.NETImageObject;
VB.NETpUnknown = object.NETImageObject As Object
C++IUnknownPtr pUnknown = object->NETImageObject;
IUnknownPtr pUnknown = object->GetNETImageObject();
CHRESULT object->get_NETImageObject(IUnknown** pUnknown);
VBpUnknown = object.NETImageObject As VT_UNKNOWN

PutRef

C#object object.NETImageObject = pUnknown;
VB.NETobject.NETImageObject = pUnknown As Object
C++IUnknownPtr object->NETImageObject = pUnknown;
void object->PutRefNETImageObject(IUnknown* pUnknown);
CHRESULT object->putref_NETImageObject(IUnknown* pUnknown);
VBSet object.NETImageObject = pUnknown As 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 sftTypeNET. 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").

Examples

C# View entire sample code

            c.Image.Picture = iPic;
            c.ImageHAlign = align;
            PropagateImage(itemIndex, c.Image);
        }

        private void UpdateImages(int itemIndex, Image img, SftTreeHAlignConstants align)
        {
            SftTreeCell c = axSftTree1.get_Cell(itemIndex, 0);
            c.Image.NETImageObject = img;
            c.ImageHAlign = align;
            PropagateImage(itemIndex, c.Image);
        }

        private void UpdateImageList(int itemIndex, ImageList imageListControl, int i, SftTreeHAlignConstants align)
        {
            SftTreeCell c = axSftTree1.get_Cell(itemIndex, 0);

VB.NET View entire sample code

        C.Image.Picture = IPic
        C.ImageHAlign = Align
        PropagateImage(ItemIndex, C.Image)
    End Sub

    Private Sub UpdateImages(ByVal ItemIndex As Integer, ByVal Img As Image, ByVal Align As SftTreeHAlignConstants)
        Dim C As SftTreeCell
        C = AxSftTree1.get_Cell(ItemIndex, 0)
        C.Image.NETImageObject = Img
        C.ImageHAlign = Align
        PropagateImage(ItemIndex, C.Image)
    End Sub

    Private Sub UpdateImageList(ByVal ItemIndex As Integer, ByVal ImageListControl As ImageList, ByVal i As Integer, ByVal Align As SftTreeHAlignConstants)
        Dim C As SftTreeCell
        C = AxSftTree1.get_Cell(ItemIndex, 0)

See Also SftPictureObject Object | Object Hierarchy


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