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