Skip to main content

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

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.2.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