public void AddElement(SimpleCell element) { if (!element.Cellgroup) { throw new BadElementException("You can't add cells to a table directly, add them to a row first."); } content.Add(element); }