Contents
- Index
- Previous
- Next
UseDivOnCarriageReturn property
Declaration
property UseDivOnCarriageReturn: Boolean;
Description
Sets default paragraph spacing for an empty document.
The value of the property is a Boolean value indicating whether carriage returns insert a single-spaced or double-spaced paragraph. If True, new paragraphs are single-spaced. If False, they are double-spaced. The default is False.
This property establishes the contents of a new document. If UseDivOnCarriageReturn is True, when a new document is created the body portion contains the following default text:
<DIV> </DIV>
If the UseDivOnCarriageReturn property is False, the body portion contains the following:
<P> </P>
Subsequent carriage returns split the existing element into two of the same. The result is that pressing the carriage return results in either single-spaced paragraphs (<DIV> elements) or double-spaced paragraphs (<P> elements).
At run time, the value of this property is available in both Edit mode and Browse mode and is retained when switching between modes. However, it does not apply in Browse mode.