System.Windows.Forms.HtmlDocument.ActiveElement Property

Provides the System.Windows.Forms.HtmlElement which currently has user input focus.

Syntax

public HtmlElement ActiveElement { get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the document has focus, but no element of the document has been given focus, HtmlDocument.ActiveElement returns the element corresponding to the <BODY> tag.

If the document does not have focus, HtmlDocument.ActiveElement returns null.

If the current element with input focus is a cell (TD) in an HTML TABLE tag, HtmlDocument.ActiveElement will return the element that contains the TABLE element.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0