TTMSFNCCustomCloudDemoListBox.InsertItem Method
Inserts a new item at the specified position with the given text, an optional icon, and an optional associated object.
API unit family: TMSFNCCloudDemoListBox
Declaring type: TTMSFNCCustomCloudDemoListBox
Syntax
procedure InsertItem(AIndex: Integer; AText: string; AResource: string = ''; AObject: TObject = nil);
Parameters
| Name | Description |
|---|---|
AIndex |
The zero-based position at which to insert the new item. |
AText |
The text to display for the new item. |
AResource |
The name of the icon resource to display next to the text. When empty, an icon is derived from the file type implied by the text. |
AObject |
An optional object reference stored on the item for application-specific use. The control does not take ownership of it. |