Back to Devexpress

ASPxDockZone.Orientation Property

aspnet-devexpress-dot-web-dot-aspxdockzone-6aaf624b.md

latest3.2 KB
Original Source

ASPxDockZone.Orientation Property

Gets or sets the direction in which panels are arranged within the zone.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(DockZoneOrientation.Vertical)]
public DockZoneOrientation Orientation { get; set; }
vb
<DefaultValue(DockZoneOrientation.Vertical)>
Public Property Orientation As DockZoneOrientation

Property Value

TypeDefaultDescription
DockZoneOrientationVertical

One of the DockZoneOrientation enumeration values.

|

Available values:

NameDescription
Vertical

Panels are arranged vertically within a zone.

| | Horizontal |

Panels are arranged horizontally within a zone.

| | Fill |

A docked panel fills whole zone client area. In this case, only one panel can be docked to the zone at one time.

|

Remarks

Panels are arranged within a zone control, one after another, either vertically or horizontally. Use the Orientation property to control the arrangement of panels. Set the Orientation to Vertical to arrange panels vertically one under another. Or, set the Orientation property to Horizontal to arrange panels horizontally from left to right.

If the Orientation property is set to Fill a docked panel fills the whole zone client area. In this case, only one panel can be docked to the zone at one tine.

You can obtain the zone orientation on the client side using the ASPxClientDockZone.IsVertical method.

Note

When you dock a panel in a vertically/horizontally oriented zone, the panel is adjusted to the zone’s width/height. The corresponding scroll bars are enabled automatically, if the content does not fit the panel’s visible area.

See Also

AllowGrowing

IsVertical

Docking

ASPxDockZone Class

ASPxDockZone Members

DevExpress.Web Namespace