Table of contents
TOC
折叠目录
展开目录

Form.Width 属性 (访问)Form.Width Property (Access)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

获取或设置指定对象的宽度,以缇为单位。读取/写入的整数Gets or sets the width of the specified object in twips. Read/write Integer.

语法Syntax

表达式宽度expression. Width

表达式_一个表示窗体对象的变量。_expression A variable that represents a Form object.

注解Remarks

对于报表控件,在打印或预览报表只能通过使用节的OnFormat事件属性设置中指定的事件过程或宏时,可以设置它的Width属性。For report controls, you can set the Width property when you print or preview a report only by using a macro or an event procedure specified in a section's OnFormat event property setting.

开始打印后,就不能再设置对象的这一属性。You can't set this property for an object once the print process has started.

宽度属性在创建或调整控件的大小或调整大小的窗体设计视图中的某个窗口或报表设计视图时,Microsoft Access 将自动设置。Microsoft Access automatically sets the Width property when you create or size a control or when you size a window in form Design View or report Design view.

窗体和报表的宽度是从边框的内部计算。控件的宽度是从边框的中心单位,所以使用不同边框宽度的控件能正确地对齐。窗体和报表的页边距设置在页面设置对话框中,可通过单击文件菜单上的页面设置The width of forms and reports is measured from the inside of their borders. The width of controls is measured from the center of their borders so controls with different border widths align correctly. The margins for forms and reports are set in the Page Setup dialog box, available by clicking Page Setup on the File menu.

另请参阅See also

概念Concepts

窗体对象Form Object

© 2018 Microsoft