Defines the image object using a .NET image object (IUnknown interface).
Get
| C# | object pUnknown = object.NETImageObject; |
| VB.NET | pUnknown = object.NETImageObject As Object |
| C++ | IUnknownPtr pUnknown = object->NETImageObject; IUnknownPtr pUnknown = object->GetNETImageObject(); |
| C | HRESULT object->get_NETImageObject(IUnknown** pUnknown); |
| VB | pUnknown = object.NETImageObject As VT_UNKNOWN |
PutRef
| C# | object object.NETImageObject = pUnknown; |
| VB.NET | object.NETImageObject = pUnknown As Object |
| C++ | IUnknownPtr object->NETImageObject = pUnknown; void object->PutRefNETImageObject(IUnknown* pUnknown); |
| C | HRESULT object->putref_NETImageObject(IUnknown* pUnknown); |
| VB | Set object.NETImageObject = pUnknown As VT_UNKNOWN |
object
A SftPictureObject object.
pUnknown
Defines the image object using a .NET image object (IUnknown interface).
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").
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);
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