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

TStoredValue

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

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

Declaration

Source position: propertystorage.pas line 37

type TStoredValue = class(TCollectionItem)

protected

  function GetDisplayName; override;

  

Gets the value for the DisplayName property in the collection item.

  procedure SetDisplayName(); override;

  

Sets the value for the DisplayName property in the collection item.

public

  constructor Create(); override;

  

Constructor for the class instance.

  procedure Assign(); override;

  

Copies property values from the specified persistent object into the current class instance.

  procedure Clear;

  

Clears the content in the Value property.

  procedure Save; virtual;

  

Saves the value for the collection item to the storage container for the collection.

  procedure Restore; virtual;

  

Loads the value for the collection item from the storage container for the collection.

  property StoredValues: TStoredValues; [r]

  

The collection containing the collection item.

published

  property Name: string; [rw]

  

The name for the collection item.

  property Value: TStoredType; [rws]

  

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

  property KeyString: string; [rw]

  

XOR encoding key, empty for encoding is not used.

  property OnSave: TStoredValueEvent; [rw]

  

Event handler signalled when the collection item value is saved.

  property OnRestore: TStoredValueEvent; [rw]

  

Event handler signalled when the collection item value is restored.

end;

Inheritance

TStoredValue

  

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

|

TCollectionItem

|

TPersistent,IFPObserved

|

TObject


Version 3.2 Generated 2024-02-25 Home