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

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

Corresponds to a Boolean value of true.

False

Corresponds to a Boolean value of false.

Default

The value is determined by the current object’s parent object setting (e.g., a control setting).

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