What's the best way to set line spacing within code? I'd like to be able to use a single precision floating point to determine the line spacing. "1.0" for single spaced, "2.0" for double spaced, etc.. Any tips?
Setting Line Spacing Using Code
-
-
-
- Offizieller Beitrag
WPTools 4 only had the RTF conform spacebetween property, WPTools 5 has SpaceBetween and LineHeight. LineHeight is a % value and SpaceBetween is a twips value. The latter can be negative to allow lineheight smaller than the largest character in a line.
Codepar := ActiveText.FirstPar; while not (par = nil) do begin par.ADel(WPAT_SpaceBetween); par.ASet(WPAT_LineHeight, round(LineSpacing.FloatValue); par := par.NextPar; end;
Julian