Search
Box.Picture Property
See Also
 



Gets or sets the image displayed inside the box.

 Syntax

VB6  Copy Code

Public Property Get Picture() As IPictureDisp
Public Property Let Picture( _
    ByVal value As IPictureDisp _
)

C++  Copy Code

public:
IPictureDisp* get_Picture ()
void put_Picture (
    IPictureDisp* value
)

 Property Value

A picture object.

 Remarks

Gets or sets the picture that is displayed in the box. The SetPictureRect method of the ShapeTemplate class lets you specify a rectangular area inside the box in which the image should be painted. Use the PicturePos property to specify whether and how the picture is aligned, stretched or tiled in that area. If the box shape is non-rectangular, the picture is clipped to match the shape outlines.

If there isn't any image assigned to this property, the box displays the Picture specified in its Shape definition.

Nodes can display transparent icons or gif images too. If you develop in Visual Basic, please note that the VB picture box control and LoadPicture method can load transparent gif images successfully, but in a format that doesn't allow saving their transparency information later. If you need to save diagrams that contain transparent images, use the FlowChartX LoadPicture methods to load these images initially.

 See Also