TTextStrings describes a TStrings descendant that is optimized for handling the complete text as whole (instead of line by line) TTextLineRange - record structure showing start and end of line in text, the line as a string, and any user data TTextStrings a TStrings descendant that is optimized for handling the complete text as whole (instead of line by line as in TStringList) FArraysValid - local boolean flag to indicate whether arrays are valid FLineCount - local variable with number of lines FLineCapacity - local variable with capacity of lines FLineRanges - local variable, a pointer to an array of TTextLineRange FText - local variable holding the test string under consideration FChangedWhileUpdate - local flag to indicate whether there were changes during the update BuildArrays - method for building arrays Changed - software emulation of OnChange event Changing - software emulation of OnChanging event ClearArrays - method for clearing arrays GetLineLen - returns length of indexed line (including new characters if boolean flag set True) MakeTextBufferUnique - makes the current text buffer unique OnChange - event handler for a change in the data or text OnChanging - event handler for use while the data or text are changing