Prev Next

SOPutParaSpacing

Sets the spacing for a paragraph.

VOID SOPutParaSpacing(

    WORD wLineHeightType,

    DWORD dwLineHeight,

    DWORD dwSpaceBefore,

    DWORD dwSpaceAfter,

    HPROC reserved

   );

Parameters

wLineHeightType

Type of line height. This parameter can be one of these values:

SO_HEIGHTATLEAST

Sets the line height to the height given by dwLineHeight or sets it to fit the tallest character in the line, whichever height is greater.

SO_HEIGHTAUTO

Sets the line height automatically to fit the tallest character in the line.

SO_HEIGHTEXACTLY

Sets the line height to the height given by dwLineHeight.

dwLineHeight
Baseline to baseline height, in twips.
dwSpaceBefore
Space before the paragraph, in twips.
dwSpaceAfter
Space after the paragraph, in twips.
reserved
Reserved; do not use.

Return Values

None.