/// <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(); }
/// <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(); }