HtmlElement.Focus Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Puts user input focus on the current element.
public:
void Focus();
public void Focus ();
member this.Focus : unit -> unit
Public Sub Focus ()
Remarks
Setting the focus on an element both gives that element focus and makes it the active element; for example, the element that has focus will be returned by the ActiveElement property of HtmlDocument.
Any key strokes entered by a user after Focus has been called will be sent to that element.
Applies to
See also
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.