Sign in Join
FPDoc Onlineexperiment

TTextStrings.SetText procedure

Member of TTextStringspublicIn unit TextStrings

Sets the value for the Text property from a PChar type.

Declaration

pascal
procedure SetText(TheText: PChar); override

Arguments

TheText

New value for the property.

Description

SetText is an overridden method used to set the value for the Text property using the specified PChar value.

SetText stores the value in TheText to the member used for the Text property. It also resets the internal validity flag for the array of of line ranges. This forces the TTextLineRange instances to be re-populated during the next read access to Strings or Objects.

SetText re-implements the method from the ancestor, and does not call the inherited method.

See also

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