Sign in Join
FPDoc Onlineexperiment

TValueListStrings.InsertItem procedure

Member of TValueListStringsprotectedIn unit ValEdit

Inserts an item with the specified value at the position in Index.

Declaration

pascal
procedure InsertItem(Index: Integer; const S: string; AObject: TObject)
 ; override
procedure InsertItem(Index: Integer; const S: string); override

Arguments

Index

Ordinal position for the new item and value.

S

Value for the new item.

AObject

Object with the definition for the new item.

Description

InsertItem is an overloaded procedure used to insert an item with the specified value(s) at the position in Index.

InsertItem hides a visible cell editor in the control during the insert operation. InsertItem calls the TItemPropList.Insert method to insert a new item definition at the position in Index. A visible cell editor is restored after the item has been inserted.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.