Click or drag to resize

IElement Interface

Represents DOM HTML element.

Namespace:  DotNetBrowser.Dom
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.26.2
Syntax
C#
public interface IElement : INode, 
	IEventTarget, IAutoDisposable, ISearchContext

The IElement type exposes the following members.

Properties
  NameDescription
Public propertyAttributeNodes
Gets a list that contains attribute nodes of the element. Each list entry represents an attribute node.
Public propertyAttributes
Gets a dictionary that contains attributes of the current element. Modifying this dictionary will lead to modifying the element attributes.
Public propertyBoundingClientRect
Gets the bounds of the element and its position relative to the top-left of the viewport of the current document.
Public propertyChildren
Gets the collection of the child nodes. Modifying this collection will lead to the DOM tree modification.
(Inherited from INode.)
Public propertyDocument
Gets the document instance containing this node.
(Inherited from INode.)
Public propertyEvents
Gets the DOM events that can be listened.
(Inherited from IEventTarget.)
Public propertyFrame
Gets the frame containing this node.
(Inherited from INode.)
Public propertyInnerHtml
Gets or sets the inner HTML of the current element.
Public propertyInnerText
Gets or sets the inner text of the current element.
Public propertyIsDisposed
Indicates if the object is already disposed.
(Inherited from IAutoDisposable.)
Public propertyNextSibling
Gets the next sibling node in the document tree.
(Inherited from INode.)
Public propertyNodeName
Gets the name of this node, depending on its NodeType.
(Inherited from INode.)
Public propertyNodeValue
Gets the value of this node, depending on its NodeType.
(Inherited from INode.)
Public propertyOuterHtml
Gets or sets the outer HTML of the current element.
Public propertyParent
Gets the parent node.
(Inherited from INode.)
Public propertyPreviousSibling
Gets the previous sibling node in the document tree.
(Inherited from INode.)
Public propertyTextContent
Gets or sets the text content of the node and its descendants.
(Inherited from INode.)
Public propertyType
Gets the type of this node.
(Inherited from INode.)
Public propertyXPath
Gets an XPath for the current Node.
(Inherited from INode.)
Top
Methods
  NameDescription
Public methodBlur
Removes focus from the current element.
Public methodClick
Simulates click on the current Node.
(Inherited from INode.)
Public methodCompareDocumentPosition
Compares position of the current node against another node in a DOM tree.
(Inherited from INode.)
Public methodDispatchEvent
Dispatches (sends) a particular DOM event to the current target.
(Inherited from IEventTarget.)
Public methodEvaluate
Evaluates an XPath expression.
(Inherited from INode.)
Public methodFocus
Gives focus to the current element (if it can be focused).
Public methodGetElementByClassName
Finds the first IElement object in the current search context by the given className.
(Inherited from ISearchContext.)
Public methodGetElementByCssSelector
Finds the first IElement object in the current search context by the given CSS selector.
(Inherited from ISearchContext.)
Public methodGetElementById
Finds the first IElement object in the current search context by the given id.
(Inherited from ISearchContext.)
Public methodGetElementByName
Finds the first IElement object in the current search context by the given name.
(Inherited from ISearchContext.)
Public methodGetElementByTagName
Finds the first IElement object in the current search context by the given tag name.
(Inherited from ISearchContext.)
Public methodGetElementsByClassName
Finds all IElement objects in the current search context by the given className.
(Inherited from ISearchContext.)
Public methodGetElementsByCssSelector
Finds all IElement objects in the current search context by the given cssSelector.
(Inherited from ISearchContext.)
Public methodGetElementsByName
Finds all IElement objects in the current search context by the given name.
(Inherited from ISearchContext.)
Public methodGetElementsByTagName
Finds all IElement objects in the current search context by the given tag name.
(Inherited from ISearchContext.)
Public methodScrollIntoView
Scrolls the element's parent container such that the element on which this method is called is visible to the user.
Top
Events
  NameDescription
Public eventDisposed
Occurs when the object has been disposed.
(Inherited from IAutoDisposable.)
Top
See Also