Field Option.
Inheritance: Element
Exemple #1
0
 public Option[] GetOptions()
 {
     ElementList nl = SelectElements(typeof(Option));
     int i = 0;
     Option[] result = new Option[nl.Count];
     foreach (Option o in nl)
     {
         result[i] = o;
         i++;
     }
     return result;
 }
Exemple #2
0
 public Option AddOption()
 {
     Option opt = new Option();
     AddChild(opt);
     return opt;
 }
Exemple #3
0
 public void AddOption(Option opt)
 {
     AddChild(opt);
 }
Exemple #4
0
 public Option AddOption(string label, string val)
 {
     Option opt = new Option(label, val);
     AddChild(opt);
     return opt;
 }