Skip to main content

ButtonEdit.IsNeedFocus Property

Gets a value indicating whether a container needs to set focus to the editor when it works as an inplace control.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[Browsable(false)]
public override bool IsNeedFocus { get; }

Property Value

Type Description
Boolean

true if a container needs to set focus to the editor; otherwise, false.

Remarks

The IsNeedFocus property is mostly used when using editors inplace within container controls. It determines whether the editor needs to be focused when a user clicks or tries to focus the editor. If this property returns true, the container sets focus to the editor.

In the ButtonEdit class, IsNeedFocus returns true if the RepositoryItemButtonEdit.TextEditStyle property is set to TextEditStyles.Standard.

This property is used internally. Most commonly, you will have no need to use it in applications.

See Also