TTMSFNCCustomCloudDemoListBox.AddItem Method
Adds a new item to the end of the list with the given text, an optional icon, and an optional associated object.
API unit family: TMSFNCCloudDemoListBox
Declaring type: TTMSFNCCustomCloudDemoListBox
Syntax
procedure AddItem(AText: string; AResource: string = ''; AObject: TObject = nil);
Parameters
| Name | Description |
|---|---|
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. |