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

PictureAlignment属性可用于指定Attachment控件中显示背景图片的位置。You can use the PictureAlignment property to specify where a background picture will appear in the Attachment control. Byte 型,可读写。Read/write Byte.


expressionexpression. PictureAlignment

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


PictureAlignment属性使用下列设置。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 22 (默认值)图片显示在控件的中央。(Default) The picture is centered in the control.
左下Bottom Left 33 图片显示在控件的左下角。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.

时将PictureTiling属性设置为是时,图片的平铺将从PictureAlignment属性设置开始。When you set the PictureTiling property to Yes, tiling of the picture will begin from the PictureAlignment property setting.

另请参阅See also

附件对象Attachment Object