Skip to main content

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.v24.1.dll

NuGet Package: 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 Return Value
True

The value is true.

0

False

The value is false.

1

Default

The value is specified by a global option or a higher-level object.

2

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