TPlusMemo.LineBreak property
PlusMemo Help Send comments on this topic.
TPlusMemo.LineBreak property

Glossary Item Box

 

Applies to

TPlusMemo, TDBPlusMemo

 

Declaration

type TPlusLineBreak = (pbCRLF, pbLFCR, pbCR, pbLF);

property LineBreak: TPlusLineBreak;

 

Description

LineBreak is a property used to indicate what sequence of characters is used to separate paragraphs when a TPlusMemo component is saving its text content into a stream upon calling method SaveToStream.  Possible values and the resulting sequences are

 

pbCRLF (default) A carriage return (#13) then a line feed (#10) sequence
pbLFCR A line feed (#10) then a carriage return (#13) sequence
pbCR Just a carriage return character (#13)
pbLF  Just a line feed character (#10)
 

Note that property LineBreak is *not* taken into account inside of the following TPlusMemo methods:

- Lines.SaveToStream;

- Lines.SaveToFile;

- Paragraphs.SaveToStream;

- Paragraphs.SaveToFile.

 

These methods result in CRLF sequences (#13#10) being written for each paragraph separation, regardless of LineBreak value.

 

It must be noted that when reading, TPlusMemo considers any of the sequence above to represent a paragraph separator.  Internally, TPlusMemo always use the convention that paragraph separators are represented by the sequence CRLF (#13#10).

 

If property Options includes the member pmoAutoLineBreak, property LineBreak is automatically set when LoadFromStream is called, according to the last paragraph separator encountered in the reading.  This does not applies when calling Lines.LoadFromStream or Paragraphs.LoadFromStream.