public HtmlElement GetHtmlElement(string name)
{
List<HtmlElement> elements = textField.htmlElements;
int count = elements.Count;
for (int i = 0; i < count; i++)
{
HtmlElement element = elements[i];
if ( name.Equals(element.name, System.StringComparison.OrdinalIgnoreCase))
return element;
}
return null;
}