Vcl.ValEdit.TValueListEditor.DeleteRow

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DeleteRow(ARow: Integer); override;

C++

virtual void __fastcall DeleteRow(int ARow);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.ValEdit.pas
Vcl.ValEdit.hpp
Vcl.ValEdit TValueListEditor

Description

Deletes a row in the value list editor and a corresponding string from the associated TStrings object.

Call DeleteRow to remove the row specified by the ARow parameter. Delete removes the corresponding string from the TStrings object being edited and updates the display.

ARow must be the index of a row that displays a name/value pair. That is, it can't be less than 0 or greater than the number of rows. If DisplayOptions includes doColumnTitles, ARow can't be 0, because that is the title row, not a name/value pair in the associated TStrings object.

Note: DeleteRow deletes the specified row regardless of the value of KeyOptions. The keyDelete member of KeyOptions controls only whether the user can delete a row by pressing the Delete key.

See Also