IItemsSource

Ecng.ComponentModel

Represents a source of items.

プロパティ

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.

メソッド

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.

戻り値: The newly created item.