FairyGUI.RichTextField.GetHtmlElement C# (CSharp) Method

GetHtmlElement() public method

public GetHtmlElement ( string name ) : HtmlElement
name string
return FairyGUI.Utils.HtmlElement
        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;
        }