[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomListBox.AddItem

Adds an item to the list.

Declaration

Source position: stdctrls.pp line 569

public procedure TCustomListBox.AddItem(

  const Item: string;

  AnObject: TObject

);

Arguments

Item

  

The item text.

AnObject

  

The associated object, can be Nil.

See also

TCustomListBox.Items

  

The list of all items in the control.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.