CollectionChangedHandlerTItem, TCollectionInsertRange Method |
Inserts multiple items to the specified index in the collection
Namespace:
Eto
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public virtual void InsertRange(
int index,
IEnumerable<TItem> items
)
Public Overridable Sub InsertRange (
index As Integer,
items As IEnumerable(Of TItem)
)
abstract InsertRange :
index : int *
items : IEnumerable<'TItem> -> unit
override InsertRange :
index : int *
items : IEnumerable<'TItem> -> unit
Parameters
- index
- Type: SystemInt32
Index to start adding the items - items
- Type: System.Collections.GenericIEnumerableTItem
Enumeration of items to add
Remarks
This simply calls
InsertItem(Int32, TItem) for each item in the list. If there
is a faster mechanism for doing so, implementors should override this method.
For example, sometimes inserting a single item will update the UI for each item, this
should be overridden so the UI is updated after all items have been inserted.
See Also