Bloom.ElementProxy.GetElementById C# (CSharp) Method

GetElementById() public method

Get the element with the specified ID. Note that it may be anywhere in the containing document, not necessarily a child of the recipient element.
public GetElementById ( string id ) : ElementProxy
id string
return ElementProxy
        public ElementProxy GetElementById(string id)
        {
            if (_xmlElement == null)
            {
                var result = _geckoElement.OwnerDocument.GetElementById(id) as GeckoHtmlElement;
                if (result == null)
                    return null;
                return new ElementProxy(result);
            }
            else
            {
                var result =_xmlElement.OwnerDocument.GetElementById(id);
                if (result == null)
                    return null;
                return new ElementProxy(result);
            }
        }