Delen via


ITextParagraphFormat.SetLineSpacing(LineSpacingRule, Single) Method

Definition

Sets the paragraph line-spacing rule and the amount of line spacing for a paragraph.

public:
 void SetLineSpacing(LineSpacingRule rule, float spacing);
void SetLineSpacing(LineSpacingRule const& rule, float const& spacing);
public void SetLineSpacing(LineSpacingRule rule, float spacing);
function setLineSpacing(rule, spacing)
Public Sub SetLineSpacing (rule As LineSpacingRule, spacing As Single)

Parameters

rule
LineSpacingRule

The new line-spacing rule.

spacing
Single

float

The new line spacing amount. If the line-spacing rule interprets the spacing value as a linear dimension, spacing is given in floating-point points.

Remarks

Because the line-spacing rule and line spacing work together, they must be set together.

Applies to

See also