Skip to main content
Table of Contents

TTMSFNCListEditor.Items Property

Collection of chip items displayed in the list editor.

API unit family: TMSFNCListEditor Declaring type: TTMSFNCListEditor Inherited from: TTMSFNCCustomListEditor Type: TTMSFNCCustomListEditorItems

Syntax

FMX.TMSFNCListEditor.hppPascalC++
property Items: TTMSFNCCustomListEditorItems;
__property TTMSFNCCustomListEditorItems* Items = {read=FItems, write=SetItems};

Usage examples

Populate list editor items

Clears the collection and adds editable values.

Populate list editor itemsPascalC++
procedure TForm1.ConfigureListEditor;
var
  itm: TTMSFNCCustomListEditorItem;
begin
  TMSFNCListEditor1.Items.Clear;

  itm := TMSFNCListEditor1.Items.Add;
  itm.Text := 'alice@example.com';
  itm.Value := 'alice';

  itm := TMSFNCListEditor1.Items.Add;
  itm.Text := 'bob@example.com';
  itm.Value := 'bob';
end;

void __fastcall TForm1::ConfigureListEditor()
{
  TTMSFNCCustomListEditorItem *itm;

  TMSFNCListEditor1->Items->Clear();

  itm = TMSFNCListEditor1->Items->Add();
  itm->Text = "alice@example.com";
  itm->Value = "alice";

  itm = TMSFNCListEditor1->Items->Add();
  itm->Text = "bob@example.com";
  itm->Value = "bob";
}

Read the related guide