Пример #1
0
 /// <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);
     }
 }
Пример #2
0
 /// <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);
 }
Пример #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="collection"></param>
 public Enumerator(LayoutCollection collection)
 {
     this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator();
 }
Пример #4
0
 /// <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);
 }
Пример #5
0
 /// <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);
 }
Пример #6
0
 /// <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);
 }