[Overview][Types][Classes][Index] Reference for unit 'TextStrings' (#lazutils)

TTextStrings.BuildArrays

Clears and builds the array with the line ranges for the values in Text.

Declaration

Source position: textstrings.pas line 66

protected procedure TTextStrings.BuildArrays; virtual;

Description

BuildArrays is a method used to clear and build the internal array with the line ranges for the values in Text. BuildArrays detects the number of end-of-line sequences in Text, allocates memory for the dynamic array, and fills the TTextLineRange instances with their values.

BuildArrays is called from methods used to read or write values in the Strings, Objects, or Count properties. It is called when the internal flag that indicates the array is valid has not been set.

See also

TTextStrings.ClearArrays

  

Clears the internal array of line ranges used in the component.

TTextStrings.Text

  

Contains the textual representation for the values in Strings.

TTextStrings.GetCount

  

Gets the value for the Count property.

TTextStrings.GetLineEnd

  

Gets the ordinal position where the specified line ends in the Text property.

TTextStrings.Insert

  

Inserts the line of text in S at the specified position.

TTextStrings.Delete

  

Deletes the line of text at the specified position.

TTextStrings.Exchange

  

Swaps the line values at the specified positions.

TTextStrings.Move

  

Moves a String value from the current position to the new position.

TTextStrings.AddObject

  

Adds a String and Object pair to the string list.

TTextStrings.AddStrings

  

Adds the lines of text in TheStrings to the current class instance.

TTextLineRange

  

TTextLineRange - record structure showing start and end of line in text, the line as a string, and any user data.

TStrings.Strings

TStrings.Objects

TStrings.Count


Version 4.0 Generated 2025-05-03 Home