Back to Devexpress

DockPanel.DockVertical Property

windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockpanel-fb690fd6.md

latest2.8 KB
Original Source

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

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public DefaultBoolean DockVertical { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Property DockVertical As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

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

|

Available values:

NameDescriptionReturn 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

Dock

DockTo

FloatVertical

DockPanel Class

DockPanel Members

DevExpress.XtraBars.Docking Namespace