/// <summary> /// Adds the elements of another NavigatorItemCollection to the end of this NavigatorItemCollection. /// </summary> /// <param name="items"> /// The NavigatorItemCollection whose elements are to be added to the end of this NavigatorItemCollection. /// </param> public virtual void AddRange(NavigatorItemCollection items) { foreach (NavigatorItem item in items) { this.List.Add(item); } }
public Enumerator(NavigatorItemCollection collection) { this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator(); }
/// <summary> /// Initializes a new instance of the NavigatorItemCollection class, containing elements /// copied from another instance of NavigatorItemCollection /// </summary> /// <param name="items"> /// The NavigatorItemCollection whose elements are to be added to the new NavigatorItemCollection. /// </param> public NavigatorItemCollection(NavigatorItemCollection items) { this.AddRange(items); }