Esempio n. 1
0
 public KmlNode(CharPosition StartPosition, CharPosition EndPosition)
 {
     this.StartPosition = StartPosition;
     this.EndPosition = EndPosition;
     ChildNodes = new KmlNodeCollection(this);
     Values = new KmlValueCollection(this);
 }
 /// <summary>
 /// Adds another collection to this collection.
 /// </summary>
 /// <param name="collection">The collection the add.</param>
 public void AddCollection(KmlValueCollection collection)
 {
     foreach (KmlValue value in collection)
     {
         List.Add(value);
         value.Parent = Parent;
     }
 }
Esempio n. 3
0
 public KmlNode()
 {
     this.Parent = null;
     ChildNodes = new KmlNodeCollection(this);
     Values = new KmlValueCollection(this);
 }
        /// <summary>
        /// Returns a deep-copy of the collection.
        /// </summary>
        /// <returns></returns>
        public KmlValueCollection Clone(KmlNode parent)
        {
            KmlValueCollection newCollection = new KmlValueCollection(parent);

            foreach (KmlValue value in List)
            {
                newCollection.Add(value.Clone());
            }

            return newCollection;
        }