IItemsSource
Ecng.ComponentModel
Represents a source of items.
Properties
ExcludeObsolete
public bool ExcludeObsolete { get; }
value = iItemsSource.ExcludeObsolete
Gets a value indicating whether obsolete items should be excluded.
SortOrder
public ListSortDirection? SortOrder { get; }
value = iItemsSource.SortOrder
Gets the sort order for the items.
Values
public IEnumerable<IItemsSourceItem> Values { get; }
value = iItemsSource.Values
Gets the collection of items.
ValueType
public Type ValueType { get; }
value = iItemsSource.ValueType
Gets the type of the value represented by the items.
Methods
CreateNewItem
public IItemsSourceItem CreateNewItem(object value)
result = iItemsSource.CreateNewItem(value)
Creates a new item using the specified value.
- value
- The value for creating the new item.
Returns: The newly created item.