MobileForms Toolkit Documentation

ListItem Class

Contains data and template binding for the item displayed in the AdvancedComboBox.

For a list of all members of this type, see ListItem Members.

System.Object
   Resco.Controls.AdvancedComboBox.ListItem
      Resco.Controls.AdvancedComboBox.BoundItem

public class ListItem : ICollection, IEnumerable, ITypedList

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

There are more ways of creating the ListItem, but after the item was created, the number of fields remains constant. Underlying type of the ListItem is just an array of objects. The number of fields is given by the property FieldCount.

The field Mapping is accessible through property FieldNames. The fields can be mapped to names and accessed with the string indexer Item, or unnamed using the Empty mapping, accessing the data with integer indexer Item. When mapping is not empty, it must have the same FieldCount as the item.

Data can be set with the constructor or indexers, or with the method SetData the data can be read from ICollection or IDataRecord (data reader). When having string data, the property StringData can be used (used by the designer). To get the data, GetData method can be used.

TemplateIndex and SelectedTemplateIndex are used to bind the item with the templates from Templates in the template set. Which template is used is dependent on whether the item is Selected or not.

Notes to Inheritors:    Non-public properties and methods can be a subject of change during further developement.

Requirements

Namespace: Resco.Controls.AdvancedComboBox

Assembly: Resco.AdvancedComboBox.CF3 (in Resco.AdvancedComboBox.CF3.dll)

See Also

ListItem Members | Resco.Controls.AdvancedComboBox Namespace