[Overview][Types][Classes][Index] Reference for unit 'PropertyStorage' (#lcl)

TStoredValue

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

A key/value pair, representing an property value, with added Save/Restore features.

Declaration

Source position: propertystorage.pas line 37

type TStoredValue = class(TCollectionItem) end;

protected

  function GetDisplayName; override;

  

Overridden to return FName/Name.

  procedure SetDisplayName(); override;

public

  constructor Create(); override;

  procedure Assign(); override;

  procedure Clear;

  

Sets Value to the empty string.

  procedure Save; virtual;

  

Saves the value, after invocation of the OnSave handler.

  procedure Restore; virtual;

  

Reads the value and notifies the OnRestore handler.

  property StoredValues: TStoredValues; [r]

  

The Collection containing this object.

published

  property Name: string; [rw]

  

The name of the property.

  property Value: TStoredType; [rws]

  

The value of the property (as String or Variant).

  property KeyString: string; [rw]

  

Encryption key, empty for no encryption.

  property OnSave: TStoredValueEvent; [rw]

  

This handler is invoked before the value is stored.

  property OnRestore: TStoredValueEvent; [rw]

  

This handler is invoked after the value has been loaded.

Inheritance

TStoredValue

  

A key/value pair, representing an property value, with added Save/Restore features.

|

TCollectionItem

?

TObject

The latest version of this document can be found at lazarus-ccr.sourceforge.net.