Table of Contents

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

bool

SortOrder

Gets the sort order for the items.

ListSortDirection? SortOrder { get; }

Property Value

ListSortDirection?

ValueType

Gets the type of the value represented by the items.

Type ValueType { get; }

Property Value

Type

Values

Gets the collection of items.

IEnumerable<IItemsSourceItem> Values { get; }

Property Value

IEnumerable<IItemsSourceItem>

Methods

CreateNewItem(object)

Creates a new item using the specified value.

IItemsSourceItem CreateNewItem(object value)

Parameters

value object

The value for creating the new item.

Returns

IItemsSourceItem

The newly created item.