PictureAlignment Property

Applies To

Form, Image Control, Report.

Description

You can use the PictureAlignment property to specify where a background picture will appear in an image control or on a form or report.

Setting

The PictureAlignment property uses the following settings.

Setting

Description

Visual Basic

Top-left

The picture is displayed at the top left corner of the image control, Form window, or page of a report.

0

Top-right

The picture is displayed at the top right corner of the image control, Form window, or page of a report.

1

Center

(Default) The picture is centered in the image control, Form window, or page of a report.

2

Bottom-left

The picture is displayed at the bottom left corner of the image control, Form window, or page of a report.

3

Bottom-right

The picture is displayed at the bottom right corner of the image control, Form window, or page of a report.

4

Form Center

(Forms only) The form’s picture is centered horizontally in relation to the width of the form and vertically in relation to the height the entire form.

5


You can set the PictureAlignment property in the form or report’s property sheet, a macro, or using Visual Basic.

This property can be set in any view.

Remarks

The Form Center setting aligns a form’s picture in the center of the form itself. All other PictureAlignment property settings align a form’s picture in relation to the Form window. If you want to make sure that a form’s picture is displayed only on the form or tiled only across the form, set the PictureAlignment property to Form Center.

For reports, the picture appears relative to a full page and not in relation to the size of the actual report. If your report is less than a full page and you want a picture to appear at a location not available through the PictureAlignment property settings, use an image control instead.

When you set the PictureTiling property to Yes, tiling of the picture will begin from the PictureAlignment property setting.

See Also

Picture Property, PictureData Property, PicturePages Property, PictureSizeMode Property, PictureTiling Property, PictureType Property.