public void Remove(Element e) { if (e == null) return; for (int i = Elements.Count; i > 0;) { i--; if (Elements[i] == e) { RemoveRange(i, 1); return; } } }
/// <summary> /// Adds a new child Element to the Section /// </summary> /// <param name="element"> /// An element to add to the section. /// </param> public void Add(Element element) { if (element == null) return; Elements.Add(element); element.Parent = this; if (Parent != null) InsertVisual(Elements.Count - 1, UITableViewRowAnimation.None, 1); }