TextBox.LineSpacing Property (Access)

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

expression .LineSpacing

expression A variable that represents a TextBox object.

Remarks

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).

In Visual Basic, use a numeric expression to set the value of this property. Values are expressed in twips.

Example

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

TextBox Object

TextBox Object Members