Attachment.PictureAlignment property (Access)

Use the PictureAlignment property to specify where a background picture will appear in the Attachment control. Read/write Byte.

Syntax

expression.PictureAlignment

expression A variable that represents an Attachment object.

Remarks

The PictureAlignment property uses the following settings.

Setting Visual Basic Description
Top Left 0 The picture is displayed in the top-left corner of the control.
Top Right 1 The picture is displayed in the top-right corner of the control.
Center 2 (Default) The picture is centered in the control.
Bottom Left 3 The picture is displayed in the bottom-left corner of the control.
Bottom Right 4 The picture is displayed in the bottom-right corner of the control.

You can also set the default for this property by using a control's default control style or the DefaultControl property in Visual Basic.

This property can be set in any view.

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

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.