TPlusMemo.Delimiters, Separators properties
PlusMemo Help Send comments on this topic.
TPlusMemo.Delimiters, Separators properties

Glossary Item Box

 

Applies to

TPlusMemo, TDBPlusMemo

 

Declaration

property Delimiters: set of Char;

property Separators: string;

 

Description

Delimiters is used to contain all the characters that act as word delimiters in a TPlusMemo or TDBPlusMemo.  It is initialized after creation to contain the most common punctuation characters.  Its content is used by the keyword highlighting engine for keywords that are set with the woWholeWordsOnly option.  It is also used by the start-stop keys highlighting part of the control, for keys where woWholeWordsOnly has been specified.  Finally, the members contained in Delimiters are used whenever the user double clicks somewhere in the text to select a word.

 

Property Delimiters has both read and write access, but at run time only.  Property Separators has been provided as a design time access to this feature.  Reading it will return a string with all the characters contained in Delimiters.  Writing to it will call an internal method that scans the assigned string and initializes Delimiters accordingly.  Both of these properties can be used interchangeably to set/retrieve the delimiters, but since internal storage is provided as a set of Char, it is more efficient to use Delimiters than Separators in an application.

 

Note: The space character is not implied as a delimiter: it should be explicitly present in Delimiters or Separators.  The carriage return character is implied and need not be present.