예제 #1
0
        /// <summary>
        /// Destroy all elements belonging to this dynElement
        /// </summary>
        public virtual void Destroy()
        {
            foreach (Element e in elements)
            {
                dynElementSettings.SharedInstance.Doc.Document.Delete(e);
            }

            //clear out the array to avoid object initialization errors
            elements.Clear();

            //clear the data tree
            dataTree.Clear();
        }
예제 #2
0
 /// <summary>
 /// Removes all the element definitions from the Block
 /// </summary>
 public void DeleteAll()
 {
     elements.Clear();
     OnPropertyChanged("Elements");
 }
 /// <summary>
 /// Removes all the element definitions from the Block
 /// </summary>
 public void DeleteAll()
 {
     elements.Clear();
 }