RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TNamedVariantsList Class

TNamedVariantsList is a persistent list of name/Variant pairs.

Pascal
TNamedVariantsList = class(TAbstractNamedVariants);
C++
class TNamedVariantsList : public TAbstractNamedVariants;

Use TNamedVariantsList to represent a set of name/value pairs where the values are all Variants. Because TNamedVariantsList is a descendant of TPersistent, it can be used as the type of a published property on a component. 

TNamedVariantsList has properties and methods that let you: 

Look up Variant values by name or by index. 

Locate a name in the list. 

Add or delete name/Variant pairs. 

Rearrange the items in the list. 

Compare this list to another named variants list.

Note: TNamedVariantsList treats the names it stores in a case-insensitive manner. When locating a name in the list or assigning a Variant value to an existing name, TNamedVariantsList treats names that differ only by case as the same.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!