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