Table of Contents

Method SetItemsFast

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetItemsFast<TItemFrom>(IEnumerable<TItemFrom>, Action<ListControlItem, TItemFrom>, Func<ListControlItem>)

Sets items from the specified collection to the control's items as fast as possible.

public virtual void SetItemsFast<TItemFrom>(IEnumerable<TItemFrom> from, Action<ListControlItem, TItemFrom> fnAssign, Func<ListControlItem> fnCreateItem)

Parameters

from IEnumerable<TItemFrom>

The collection to be assigned to item of the control.

fnAssign Action<ListControlItem, TItemFrom>

Assign item action. Must assign item data.

fnCreateItem Func<ListControlItem>

Create item action.

Type Parameters

TItemFrom

Type of the item in the otgher collection that will be assigned to the control's items.