HtmlElement Methods
.NET Framework 4.5
The HtmlElement type exposes the following members.
| Name | Description | |
|---|---|---|
|
AppendChild | Adds an element to another element's subtree. |
|
AttachEventHandler | Adds an event handler for a named event on the HTML Document Object Model (DOM). |
|
DetachEventHandler | Removes an event handler from a named event on the HTML Document Object Model (DOM). |
|
Equals | Tests if the supplied object is equal to the current element. (Overrides Object.Equals(Object).) |
|
Focus | Puts user input focus on the current element. |
|
GetAttribute | Retrieves the value of the named attribute on the element. |
|
GetElementsByTagName | Retrieves a collection of elements represented in HTML by the specified HTML tag. |
|
GetHashCode | Serves as a hash function for a particular type. (Overrides Object.GetHashCode().) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
InsertAdjacentElement | Insert a new element into the Document Object Model (DOM). |
|
InvokeMember(String) | Executes an unexposed method on the underlying DOM element of this element. |
|
InvokeMember(String, Object[]) | Executes a function defined in the current HTML page by a scripting language. |
|
RaiseEvent | Causes the named event to call all registered event handlers. |
|
RemoveFocus | Removes focus from the current element, if that element has focus. |
|
ScrollIntoView | Scrolls through the document containing this element until the top or bottom edge of this element is aligned with the document's window. |
|
SetAttribute | Sets the value of the named attribute on the element. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |