ListItem

References
[ContentProperty("Text")] public class ListItem : IListItem
Represents an item for list controls.
Remarks: If you have a list of your own objects, it is more efficient to use them directly with the list control by passing a collection to the DataStore property, and use ListControl.ItemTextBinding and ListControl.ItemKeyBinding instead.

Properties

Key

#
public string Key { get; set; }
Gets or sets the unique key of the item.
Remarks: The key is typically used to identify each item uniquely. If no key is specified, the Text is used as the key.
The key of the item.
Key

Tag

#
public object Tag { get; set; }
Gets or sets custom data for the item.

Text

#
public string Text { get; set; }
Gets or sets the text of the item.

Methods

ToString

#
public override string ToString()
Gets the listItem's string

Convertors

OperationResultDescription
implicitstringListItem> Converts a string to a list item implicitly