Vcl.ValEdit.TValueListEditor.Strings

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Strings: TStrings read GetStrings write SetStrings;

C++

__property System::Classes::TStrings* Strings = {read=GetStrings, write=SetStrings};

Properties

Type Visibility Source Unit Parent
property published
Vcl.ValEdit.pas
Vcl.ValEdit.hpp
Vcl.ValEdit TValueListEditor

Description

Provides access to the string list that is being edited.

Use Strings to access the string list that the value list editor displays. Strings should be a TStrings descendant that contains strings of the form Name=Value.

At design time, add values to the Strings property using the string list editor. At runtime, you can use the methods of TStrings to add strings to the list one by one, or assign an existing TStrings descendant to the Strings property. When you set Strings at runtime, TValueListEditor copies the strings from the TStrings object you assign: it does not take ownership of the object itself.

When Strings is assigned, the value list editor displays the name portion (TStrings . ::Names) of the strings in its key column and the value portion (TStrings . ::Values) in the value column.

See Also