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++IUnknown* pUnknown = object->NETImageObject;
IUnknown* pUnknown = object->GetNETImageObject();
CHRESULT object->get_NETImageObject(IUnknown** pUnknown);

PutRef

C#object object.NETImageObject = pUnknown;
VB.NETobject.NETImageObject = pUnknown As Object
C++IUnknown* object->NETImageObject = pUnknown;
void object->PutRefNETImageObject(IUnknown* pUnknown);
CHRESULT object->putref_NETImageObject(IUnknown* pUnknown);

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, 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 SftBox/OCX with .NET").

Examples

C# View entire sample code

                axSftBox1.get_Item(ItemIndex).LabelImage = Img;
                axSftBox1.get_Item(ItemIndex).RowHeader.Image = Img;
            }
        }

        private void UpdateImages(int ItemIndex, System.Drawing.Image img, SftBoxHAlignConstants Align)
        {
            SftBoxCell C = axSftBox1.get_Cell(ItemIndex, 0);
            C.Image.NETImageObject = img;
            C.ImageHAlign = Align;
            PropagateImage(ItemIndex, C.Image);
        }

        private void UpdateImageList(int ItemIndex, ImageList ImageListControl, int i, SftBoxHAlignConstants Align)
        {
            SftBoxCell C = axSftBox1.get_Cell(ItemIndex, 0);

VB.NET View entire sample code

            AxSftBox1.get_Item(ItemIndex).LabelImage = Img
            AxSftBox1.get_Item(ItemIndex).RowHeader.Image = Img
        End If
    End Sub

    Private Sub UpdateImages(ByVal ItemIndex As Integer, ByVal Img As Image, ByVal Align As SftBoxHAlignConstants)
        Dim C As SftBoxCell
        C = AxSftBox1.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 SftBoxHAlignConstants)
        Dim C As SftBoxCell
        C = AxSftBox1.get_Cell(ItemIndex, 0)

See Also SftPictureObject Object | Object Hierarchy


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