EControl Syntax Editor SDK
TSyntAutoReplace.IsLegalChar Method

Checks whether C is a "word" char.

function IsLegalChar(C: ecChar): boolean; virtual;

IsLegalChar method returns true if C is a letter, a digit or a '_' symbol. Otherwise it returns false. 

When IsLegalChar method is called the OnCheckChar event occurs. Hence, the user may redefine "word" characters. 

"Word" characters may also be redefined by overriding IsLegalChar method.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!