/// <summary> /// Gets a list of all form fields /// </summary> /// <returns></returns> public Rule[] GetRules() { ElementList nl = SelectElements(typeof(Rule)); Rule[] items = new Rule[nl.Count]; int i = 0; foreach (Element e in nl) { items[i] = (Rule)e; i++; } return items; }
public void AddRule(Rule rule) { AddChild(rule); }
public Rule AddRule() { Rule rule = new Rule(); AddChild(rule); return rule; }