/// <summary> /// Adds an element to the <see cref="Options"/> collection (IE only). /// </summary> /// <param name="option">Element to add to the <see cref="Options"/> collection.</param> /// <param name="index">Specifies the index position in the collection where the element is placed.</param> public void Add(OptionElement option, int index) { }
/// <summary> /// Adds an element to the <see cref="Options"/> collection (Firefox only). /// </summary> /// <param name="option">Element to add to the <see cref="Options"/> collection.</param> /// <param name="before">The element before which to add <paramref name="option"/>.</param> public void Add(OptionElement option, OptionElement before) { }
private void FillSelect(SelectElement el, OptionElement[] options) { ClearSelect(el); for (int i = 0; i < options.Length; i++) { el.AppendChild(options[i]); } }
/// <summary> /// Adds an element to the end of the <see cref="Options"/> collection. /// </summary> /// <param name="option">Element to add to the <see cref="Options"/> collection.</param> public void Add(OptionElement option) { }
private void FillOptionArrayFromValues(Pair[] options, OptionElement[] array) { for (int i = 0; i < options.Length;i++ ) { Pair de = options[i]; OptionElement el = (OptionElement)Document.CreateElement("OPTION"); el.InnerHTML = de.key.Unescape().Replace("&", "&").Replace(" ", " "); el.Value = de.value; array[array.Length] = el; } }
private void CopyValuesFromSelectListToArray(SelectElement el, OptionElement[] options) { for (int i = 0; i < el.Options.Length; i++) { options[options.Length] = (OptionElement) el.Options[i]; } }