Back to API Reference
Class

ParagraphSpacingModifier

Inherits:BaseModifier

Adds vertical spacing between paragraphs (text separated by line breaks).

Remarks

Parameters (comma-separated): After, Before — both optional. After opens a gap below each covered paragraph, Before above it; where two paragraphs meet the values add up (no CSS-style margin collapsing). Nothing is added at the block edges. Units: 10 (pixels), 50% or 0.5em (× font size). Negative values pull the neighbouring paragraphs together, down to full overlap; the gap never inverts. When several ranges cover one paragraph, the largest value per side wins.
public UnitValue After{ get; set }

Gap opened below each covered paragraph. A per-range value overrides it.

public UnitValue Before{ get; set }

Gap opened above each covered paragraph. A per-range value overrides it.

protected override void OnEnable()
protected override void OnDisable()
protected override void OnDestroy()
protected override void BeforeApply()
protected override void OnApply()