/// <summary> /// Nahradí list elementov(začiatok na CurrentIndex) listom elemov. /// </summary> /// <param name="length"></param> /// <param name="elems"></param> public void Replace(int length, List <IElement> elems) { CurrentElements.RemoveRange(CurrentIndex, length); CurrentElements.InsertRange(CurrentIndex, elems); }
/// <summary> /// Nahradí list elementov(začiatok na CurrentIndex) jediným elemom. /// </summary> /// <param name="length"></param> /// <param name="elem"></param> public void Replace(int length, IElement elem) { CurrentElements.RemoveRange(CurrentIndex, length); CurrentElements.Insert(CurrentIndex, elem); }