NameValuePairCollection

Overview

Location

 

constructor Create  overload

Creates an new instance

constructor Create

constructor Create (TCollectionItemClass)  protected overload

Creates an new instance

constructor Create(aItemClass: TCollectionItemClass)

Parameters:

  • aItemClass:

Add  reintroduce

function Add: NameValuePair

GetIndex    (declared in TROCollection)

Searches for an item with a aPropertyName property, which is accessible via GetPropValue and is equal to aPropertyValue. Returns the index of the first item found or -1.

function GetIndex(const aPropertyName: string; const aPropertyValue: Variant; StartFrom: Integer; Options: TROSearchOptions): Integer

Parameters:

  • aPropertyName: Name of the published property
  • aPropertyValue: Value of the property
  • StartFrom: Item index to start from
  • Options: Value of TROSearchOptions

GetItems  protected

function GetItems(aIndex: Integer): NameValuePair

Parameters:

  • aIndex:

Items

property Items[Index: Integer]: NameValuePair read write

LoadFromArray

procedure LoadFromArray(anArray: NameValuePairArray)

Parameters:

  • anArray:

SaveToArray

procedure SaveToArray(anArray: NameValuePairArray)

Parameters:

  • anArray:

Handy wrapper for GetIndex, which returns the found item or NIL.

function Search(const aPropertyName: string; const aPropertyValue: Variant; StartFrom: Integer; Options: TROSearchOptions): TCollectionItem

Parameters:

  • aPropertyName: property name
  • aPropertyValue: property value
  • StartFrom: index
  • Options: options

SetItems  protected

procedure SetItems(aIndex: Integer; const Value: NameValuePair)

Parameters:

  • aIndex:
  • Value:

 

Items

property Items[Index: Integer]: NameValuePair read write

 

constructor Create  overload

Creates an new instance

constructor Create

constructor Create (TCollectionItemClass)  protected overload

Creates an new instance

constructor Create(aItemClass: TCollectionItemClass)

Parameters:

  • aItemClass:

Add  reintroduce

function Add: NameValuePair

GetIndex    (declared in TROCollection)

Searches for an item with a aPropertyName property, which is accessible via GetPropValue and is equal to aPropertyValue. Returns the index of the first item found or -1.

function GetIndex(const aPropertyName: string; const aPropertyValue: Variant; StartFrom: Integer; Options: TROSearchOptions): Integer

Parameters:

  • aPropertyName: Name of the published property
  • aPropertyValue: Value of the property
  • StartFrom: Item index to start from
  • Options: Value of TROSearchOptions

GetItems  protected

function GetItems(aIndex: Integer): NameValuePair

Parameters:

  • aIndex:

LoadFromArray

procedure LoadFromArray(anArray: NameValuePairArray)

Parameters:

  • anArray:

SaveToArray

procedure SaveToArray(anArray: NameValuePairArray)

Parameters:

  • anArray:

Handy wrapper for GetIndex, which returns the found item or NIL.

function Search(const aPropertyName: string; const aPropertyValue: Variant; StartFrom: Integer; Options: TROSearchOptions): TCollectionItem

Parameters:

  • aPropertyName: property name
  • aPropertyValue: property value
  • StartFrom: index
  • Options: options

SetItems  protected

procedure SetItems(aIndex: Integer; const Value: NameValuePair)

Parameters:

  • aIndex:
  • Value: