Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

HtmlContentControl.FocusElement(DxHtmlElement, Boolean) Method

Sets focus to or removes focus from the specified element.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public void FocusElement(
    DxHtmlElement element,
    bool focused = true
)

#Parameters

Name Type Description
element DxHtmlElement

The target HTML element.

#Optional Parameters

Name Type Default Description
focused Boolean True

true to focus an element; false to remove focus from the element.

#Remarks

See the following topic for more information: HtmlContentControl.FocusElement.

See Also