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