Sign in Join
FPDoc Onlineexperiment

TTextStrings.Clear procedure

Member of TTextStringspublicIn unit TextStrings

Clears the text and internal line ranges for the component.

Declaration

pascal
procedure 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.