示例#1
0
 /// <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;
 }
示例#2
0
 public void AddRule(Rule rule)
 {
     AddChild(rule);
 }
示例#3
0
        public Rule AddRule()
        {
            Rule rule = new Rule();
            AddChild(rule);

            return rule;
        }