Search
FlowChart.PicturePos Property
See Also
 



Gets or sets the alignment style of the background image.

 Syntax

VB6  Copy Code

Public Property Get PicturePos() As EPicturePos
Public Property Let PicturePos( _
    ByVal Value As EPicturePos _
)

C++  Copy Code

public:
EPicturePos get_PicturePos ()
void put_PicturePos (
    EPicturePos value
)

 Property Value

A value of the EPicturePos enumeration. The default is picCenter.

 Remarks

Specifies alignment style of the background Picture. Possible values are:

picCenter

The image is painted centered in the diagram, using its original size.

picFit

The image is stretched to fill the width or the height of the diagram area, maintaining the original image aspect ratio.

picStretch

The image is stretched to fill the entire diagram area.

picTile

Multiple tiles of the image are drawn across the diagram.

picTopLeft

The image top left corner coincides with top left corner of the diagram.

picBottomLeft

The image bottom left corner coincides with bottom left corner of the diagram.

picTopRight

The image top right corner coincides with top right corner of the diagram.

picBottomRight

The image bottom right corner coincides with bottom right corner of the diagram.

picTopCenter

The image is centered horizontally; its top side coincides with the top side of the diagram.

picBottomCenter

The image is centered horizontally; its bottom side coincides with the bottom side of the diagram.

picCenterLeft

The image is centered vertically; its left side coincides with the left side of the diagram.

picCenterRight

The image is centered vertically; its right side coincides with the right side of the diagram.

If the picDocument modifier is applied to the property value, the image is aligned to the scrollable area of the diagram; otherwise the image is aligned to the FlowChartX' control window.

 Example

The following VB code loads a background image and stretches it over the whole document scrollable area.

VB6  Copy Code

fcx.LoadPicture appPath + "diaback1.jpg"
fcx.PicturePos = picStretch + picDocument

 See Also