Open.Core.Lists.ListView.InsertRange C# (CSharp) Метод

InsertRange() публичный Метод

Loads the collection of models into the list.
public InsertRange ( int startingAt, IEnumerable models ) : void
startingAt int Index to start inserting at (0-based).
models IEnumerable A collection models.
Результат void
        public void InsertRange(int startingAt, IEnumerable models)
        {
            // Setup initial conditions.
            if (Script.IsNullOrUndefined(models)) return;
            if (startingAt < 0) startingAt = 0;

            // Insert each item.
            foreach (object model in models)
            {
                Insert(startingAt, model);
                startingAt++;
            }
        }