/// <summary> /// Search the string <paramref name="text2Search"/> /// </summary> /// <param name="text2Search">String to put in the <seealso cref=""/></param> /// <returns></returns> public int Search(string text2Search) { int i = 1; if (this.Ready == TagReady.y_ready && SearchBar != null) { ((mshtml.IHTMLElement2)SearchBar).focus(); SearchBar.value = text2Search; SearchButton.click(); i = 0; SelectPosition = 0; } return(i); }