Skip to main content

OptionsFocus.MoveFocusDirection Property

Gets or sets the direction in which focus moves in Automatic Tab Order mode when the TAB key is pressed.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(MoveFocusDirection.AcrossThenDown)]
[XtraSerializableProperty]
public MoveFocusDirection MoveFocusDirection { get; set; }

Property Value

Type Default Description
MoveFocusDirection AcrossThenDown

A MoveFocusDirection value that specifies the direction in which focus moves.

Available values:

Name Description
AcrossThenDown

Focus moves from one ‘row’ to another selecting each control in a row.

DownThenAcross

Focus moves from one ‘column’ to another selecting each control in a column

Property Paths

You can access this nested property as listed below:

Object Type Path to MoveFocusDirection
LayoutControl
.OptionsFocus .MoveFocusDirection

Remarks

The Automatic Tab Order feature is enabled if the OptionsFocus.EnableAutoTabOrder property is set to true. In this mode, pressing the TAB key moves focus between controls according to the settings specified by the MoveFocusDirection and OptionsFocus.MoveFocusRightToLeft properties.

If the MoveFocusDirection property is set to MoveFocusDirection.AcrossThenDown, focus moves from one ‘row’ to another selecting each control in a row. If this option is set to MoveFocusDirection.DownThenAcross, focus moves from one ‘column’ to another selecting each control in a column.

See the Focus Management topic for more information.

See Also