TNumberHighlighter.Delimiters, Separators property
PlusMemo Help Send comments on this topic.
TNumberHighlighter.Delimiters, Separators property

Glossary Item Box

 

Applies to

TNumberHighlighter component

 

Declaration

property Delimiters: TSysCharSet;

property Separators: string;

 

Description

Delimiters is used to contain all the characters that act as word delimiters for the number searching algorithm.  Its initial value is equal to the set [#9, ' ', '.', ',', ';'].

 

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.

 

If you change these properties at run time, call TPlusMemo.ReApplyKeywords for the change to take effect immediately.  Otherwise, only subsequent editing operations will take account of the new Delimiters or Separators value.