Skip to main content

ParagraphFormattingSettings.lineSpacing Property

Specifies a line spacing value.

Declaration

lineSpacing: number

Property Value

Type Description
number

The line spacing.

Remarks

The lineSpacing property is in effect when the lineSpacingType property value is set to Exactly, AtLeast, or Multiple.

For the Exactly and AtLeast types, the value is set in twips. Use the unitConverter property to convert size measure units (inches, points, pixels, centimeters) to twips.

var spacingSettings = {
    lineSpacingType: ASPx.ParagraphLineSpacingType.Exactly,
    lineSpacing: richEdit.unitConverter.pointsToTwips(20)
};

richEdit.commands.changeParagraphFormatting.execute(spacingSettings););

For the Multiple type, the value is set in numbers. For example, set the value to 1.15 to increase the space by 15 percent.

See Also