System.Windows.Forms.HtmlElement Members

The members of System.Windows.Forms.HtmlElement are listed below.

See Also: Inherited members from System.Object

Public Properties

[read-only]
AllHtmlElementCollection.

Gets an System.Windows.Forms.HtmlElementCollection of all elements underneath the current element.

[read-only]
CanHaveChildrenbool.

Gets a value indicating whether this element can have child elements.

[read-only]
ChildrenHtmlElementCollection.

Gets an System.Windows.Forms.HtmlElementCollection of all children of the current element.

[read-only]
ClientRectangleSystem.Drawing.Rectangle.

Gets the bounds of the client area of the element in the HTML document.

[read-only]
DocumentHtmlDocument.

Gets the System.Windows.Forms.HtmlDocument to which this element belongs.

[read-only]
DomElementobject.

Gets an unmanaged interface pointer for this element.

Enabledbool.

Gets or sets whether the user can input data into this element.

[read-only]
FirstChildHtmlElement.

Gets the next element below this element in the document tree.

Idstring.

Gets or sets a label by which to identify the element.

InnerHtmlstring.

Gets or sets the HTML markup underneath this element.

InnerTextstring.

Gets or sets the text assigned to the element.

Namestring.

Gets or sets the name of the element.

[read-only]
NextSiblingHtmlElement.

Gets the next element at the same level as this element in the document tree.

[read-only]
OffsetParentHtmlElement.

Gets the element from which HtmlElement.OffsetRectangle is calculated.

[read-only]
OffsetRectangleSystem.Drawing.Rectangle.

Gets the location of an element relative to its parent.

OuterHtmlstring.

Gets or sets the current element's HTML code.

OuterTextstring.

Gets or sets the current element's text.

[read-only]
ParentHtmlElement.

Gets the current element's parent element.

ScrollLeftint.

Gets or sets the distance between the edge of the element and the left edge of its content.

[read-only]
ScrollRectangleSystem.Drawing.Rectangle.

Gets the dimensions of an element's scrollable region.

ScrollTopint.

Gets or sets the distance between the edge of the element and the top edge of its content.

Stylestring.

Gets or sets a comma-delimited list of styles for the current element.

TabIndexshort.

Gets or sets the location of this element in the tab order.

[read-only]
TagNamestring.

Gets the name of the HTML tag.

Public Methods

AppendChild(HtmlElement) : HtmlElement

Adds an element to another element's subtree.

AttachEventHandler(string, EventHandler)

Adds an event handler for a named event on the HTML Document Object Model (DOM).

DetachEventHandler(string, EventHandler)

Removes an event handler from a named event on the HTML Document Object Model (DOM).

override
Equals(object) : bool

Tests if the supplied object is equal to the current element.

Focus()

Puts user input focus on the current element.

GetAttribute(string) : string

Retrieves the value of the named attribute on the element.

GetElementsByTagName(string) : HtmlElementCollection

Retrieves a collection of elements represented in HTML by the specified HTML tag.

override
GetHashCode() : int
Documentation for this section has not yet been entered.
InsertAdjacentElement(HtmlElementInsertionOrientation, HtmlElement) : HtmlElement

Insert a new element into the Document Object Model (DOM).

InvokeMember(string) : object

Executes an unexposed method on the underlying DOM element of this element.

InvokeMember(string, params object[]) : object

Executes a function defined in the current HTML page by a scripting language.

RaiseEvent(string)

Causes the named event to call all registered event handlers.

RemoveFocus()

Removes focus from the current element, if that element has focus.

ScrollIntoView(bool)

Scrolls through the document containing this element until the top or bottom edge of this element is aligned with the document's window.

SetAttribute(string, string)

Sets the value of the named attribute on the element.

Public Events

Click

Occurs when the user clicks on the element with the left mouse button.

DoubleClick

Occurs when the user clicks the left mouse button over an element twice, in rapid succession.

Drag

Occurs when the user drags text to various locations.

DragEnd

Occurs when a user finishes a drag operation.

DragLeave

Occurs when the user is no longer dragging an item over this element.

DragOver

Occurs when the user drags text over the element.

Focusing

Occurs when the element first receives user input focus.

GotFocus

Occurs when the element has received user input focus.

KeyDown

Occurs when the user presses a key on the keyboard.

KeyPress

Occurs when the user presses and releases a key on the keyboard.

KeyUp

Occurs when the user releases a key on the keyboard.

LosingFocus

Occurs when the element is losing user input focus.

LostFocus

Occurs when the element has lost user input focus.

MouseDown

Occurs when the user presses a mouse button.

MouseEnter

Occurs when the user first moves the mouse cursor over the current element.

MouseLeave

Occurs when the user moves the mouse cursor off of the current element.

MouseMove

Occurs when the user moves the mouse cursor across the element.

MouseOver

Occurs when the mouse cursor enters the bounds of the element.

MouseUp

Occurs when the user releases a mouse button.

Public Operators

static
Equality(HtmlElement, HtmlElement)

Compares two elements for equality.

static
Inequality(HtmlElement, HtmlElement)

Compares two System.Windows.Forms.HtmlElement objects for inequality.