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

NavigationControl.LineSpacing 属性 (访问)NavigationControl.LineSpacing Property (Access)

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

可以使用LineSpacing属性可以指定或确定在标签或文本框控件中显示的信息的位置。读取/写入的整数You can use the LineSpacing property to specify or determine the location of information displayed within a label or text box control. Read/write Integer.

语法Syntax

表达式LineSpacingexpression. LineSpacing

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

注解Remarks

控件中的显示信息位置是每行显示信息之间的距离。若要使用在Windows 控制面板区域选项对话框中的设置不同的度量单位,请指定单位,如厘米或英寸 (例如,3 厘米或 2 英寸)。A control's displayed information location is the distance measured between each line of the displayed information. To use a unit of measurement different from the setting in the Regional Options dialog box in Windows Control Panel, specify the unit, such as cm or in (for example, 3 cm or 2 in).

在 Visual Basic 中,使用数值表达式设置此属性的值,值以缇为单位表示。In Visual Basic, use a numeric expression to set the value of this property. Values are expressed in twips.

示例Example

下面的示例将“Purchase Order”窗体上的“PurchaseOrderInformation”文本框的行间距设置为 0.25 英寸The following example sets the line spacing to 0.25 inches for the text box "PurchaseOrderInformation" on the "Purchase Order Form"

' 0.25 inches = 360/1440 twips. 
 Forms("Purchase Orders").Controls("PurchaseOrderDescription").LineSpacing = 360

另请参阅See also

概念Concepts

NavigationControl 对象NavigationControl Object

© 2018 Microsoft