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

TStoredValues.StoredValue

Provides indexed access to the value for a collection item with the specified name.

Declaration

Source position: propertystorage.pas line 84

public property TStoredValues.StoredValue[Name: string] : TStoredType
  read GetStoredValue
  write SetStoredValue;

Description

StoredValue is an indexed TStoredType property which provides access to the value for a collection item with the name specified in the Name argument. TStoredType allows the value to be represented as either a String or Variant type. See TStoredType for more information.

The IndexOf method is called to locate the collection item with the specified Name. If a collection item is not found, the property value can be either an empty string ('') (when TStoredType is AnsiString) or Null (when TStoredType is a Variant).

When writing the value for the indexed property, a new collection item is created in Items if a TStoredValue entry does not already exist with the specified Name.

Use the Values property to access a collection item instance by its Name. Use the Items property to access a collection item by its ordinal position.

See also

TStoredValues.IndexOf

  

Gets the ordinal position in Items for the collection item with the specified name.

TStoredValues.Items

  

Provides indexed access to the TStoredValue collection items by their ordinal position.

TStoredValues.Values

  

Provides indexed access to a TStoredValue instance in the collection by its name.

TStoredValue.Name

  

The name for the collection item.

TStoredValue.Value

  

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

TStoredType

  

Alias to the type used to store a property value.


Version 3.2 Generated 2024-02-25 Home