Skip to main content
A newer version of this page is available. .

DockPanel.DockVertical Property

Gets or sets whether the current panel’s children should be arranged vertically or horizontally when the panel is docked to a form/user control.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Navigation

Declaration

[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public DefaultBoolean DockVertical { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

A DefaultBoolean value that specifies the orientation of dock panels in a split container.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Remarks

If the current panel is a split container that is docked to the form/user control and the DockVertical property is set to true, the container’s children will be arranged vertically. Otherwise, the container’s child panels will be arranged horizontally.

The DockVertical property can be set for a split container, or for a panel which will be used to create a split container (this is the panel to which another panel is docked when a split container is created).

When a panel is floating, use the DockPanel.FloatVertical property to choose between the vertical and horizontal orientation of the panel’s children.

See Also