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

TTextStrings.Clear

Clears the text and internal line ranges for the component.

Declaration

Source position: textstrings.pas line 81

public procedure TTextStrings.Clear; override;

Description

Clear is an overridden method which implements the abstract virtual method declared in the ancestor. It is used to remove the Text and line range information used in the component.

Clear calls the ClearArrays method to free TTextLineRange resources allocated to the internal dynamic array. The internal line counter is reset to 0 (zero), and the Text property is set to an empty string ('').

Clear is called when the component is freed, and before reading string values in the LCL component streaming mechanism.

See also

TTextStrings.Text

  

Contains the textual representation for the values in Strings.

TTextStrings.ClearArrays

  

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

TTextStrings.Destroy

  

Destructor for the class instance.

TTextLineRange

  

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

TCustomMemoStrings

  

Implements a string list used in Memo controls.

TStrings.Clear


Version 4.0 Generated 2025-05-03 Home