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

TTextStrings.SetText

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

Declaration

Source position: textstrings.pas line 82

public procedure TTextStrings.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

TStrings.SetText


Version 4.0 Generated 2025-05-03 Home