lineHeight Property
As it applies to the FPHTMLStyle and IHTMLRuleStyle objects.
Returns or sets a Variant that represents the distance between lines in the object. Corresponds to the line-height property for the style attribute.
expression.lineHeight
expression Required. An expression that returns one of the objects in the Applies To list.
Remarks
The String value for the lineHeight property can be one of the following:
Value | Description |
---|---|
normal
|
Default height. |
height
|
A floating-point number, followed by an absolute units designator (cm , mm , in , pt , pc , or px ) or a relative units designator (em or ex ). |
percentage
|
A integer, followed by a % . The value is a percentage of the height of the parent object. |
As it applies to the IFPStyleState object.
Returns an IFPStyleLength object that represents the line height for the specified object.
expression.lineHeight
expression Required. An expression that returns one of the objects in the Applies To list.
Example
As it applies to the FPHTMLStyle object.
The following example changes the line height in the active document to 10 pt.
Sub SetLineHeight()
ActiveDocument.body.Style.lineHeight = "10pt"
End Sub