Sign in Join
FPDoc Onlineexperiment

TStoredValues class

In unit PropertyStorage

Implements a collection for TStoredValue collection items.

Declaration

pascal
TStoredValues = class(TOwnedCollection)

Inheritance

  1. TStoredValues
  2. TOwnedCollection

Description

TStoredValues is a TOwnedCollection descendant which implements an owned collection for TStoredValue collection items.

TStoredValues provides properties and methods used to access the TStoredValue collection items or their values. Use Items to read and write a collection item by its ordinal position in the collection. Use Values to read and write a collection item by its name. Use StoredValue to read and write the value for a collection item by its name.

The owner of the collection (passed as an argument to the constructor) is a TCustomPropertyStorage instance stored in the Storage property. It provides a container used to read and write name/value pairs which represent the items in the collection. Use RestoreValues and SaveValues methods to read and write the collection items using the Storage container for the collection.

See also

Properties

StoragepublicStorage container used to Save and Restore the Values for the collection Items.
ItemspublicProvides indexed access to the TStoredValue collection items by their ordinal position.
ValuespublicProvides indexed access to a TStoredValue instance in the collection by its name.
StoredValuepublicProvides indexed access to the value for a collection item with the specified name.

Methods

CreatepublicConstructor for the class instance.
IndexOfpublicGets the ordinal position in Items for the collection item with the specified name.
SaveValuespublicSaves all of the collection items to the Storage container for the collection.
RestoreValuespublicLoads all of the values for the collection Items from the Storage container for the collection.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.