/// <summary> /// Adds the elements of another LayoutCollection to the end of this LayoutCollection. /// </summary> /// <param name="items"> /// The LayoutCollection whose elements are to be added to the end of this LayoutCollection. /// </param> public virtual void AddRange(LayoutCollection items) { foreach (ILayout item in items) { this.List.Add(item); } }
/// <summary> /// Initializes a new instance of the LayoutCollection class, containing elements /// copied from another instance of LayoutCollection /// </summary> /// <param name="items"> /// The LayoutCollection whose elements are to be added to the new LayoutCollection. /// </param> public LayoutCollection(LayoutCollection items) { this.AddRange(items); }
/// <summary> /// /// </summary> /// <param name="collection"></param> public Enumerator(LayoutCollection collection) { this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator(); }
/// <summary> /// Adds all layouts used by this target to the specified collection. /// </summary> /// <param name="layouts">The collection to add layouts to.</param> public override void PopulateLayouts(LayoutCollection layouts) { base.PopulateLayouts (layouts); _fileNameLayout.PopulateLayouts(layouts); }
/// <summary> /// Add this layout and all sub-layouts to the specified collection.. /// </summary> /// <param name="layouts">The collection of layouts.</param> public void PopulateLayouts(LayoutCollection layouts) { layouts.Add(this); }
/// <summary> /// Adds all layouts used by this target to the specified collection. /// </summary> /// <param name="layouts">The collection to add layouts to.</param> public override void PopulateLayouts(LayoutCollection layouts) { if (this.CompiledLayout != null) this.CompiledLayout.PopulateLayouts(layouts); }