PictureAlignment 属性 (权限)Attachment.PictureAlignment property (Access)

可以使用 图片对齐方式 属性以指定背景图片 附件 控件中的显示位置。You can use the PictureAlignment property to specify where a background picture will appear in the Attachment control. 读取/写入 字节Read/write Byte.

语法Syntax

表达式PictureAlignmentexpression.PictureAlignment

_表达式_一个代表**附件** 对象的变量。expression A variable that represents an Attachment object.

注解Remarks

图片对齐方式 属性使用以下设置。The PictureAlignment property uses the following settings.

设置Setting Visual BasicVisual Basic 说明Description
左上Top Left 00 图片显示在控件的左上角。The picture is displayed in the top-left corner of the control.
右上Top Right 11 图片显示在控件的右上角。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 44 图片显示在控件的右下角。The picture is displayed in the bottom-right corner of the control.

您还可以使用控件的默认控件样式或 Visual Basic 中的**DefaultControl** 属性来设置此属性的默认值。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

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.