Back to Devexpress

DashboardLayoutGroup.Orientation Property

dashboard-devexpress-dot-dashboardcommon-dot-dashboardlayoutgroup-749896cc.md

latest4.9 KB
Original Source

DashboardLayoutGroup.Orientation Property

Gets or sets the value specifying the orientation of layout items/groups within the group.

Namespace : DevExpress.DashboardCommon

Assembly : DevExpress.Dashboard.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

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

Property Value

TypeDefaultDescription
DashboardLayoutGroupOrientationHorizontal

A DashboardLayoutGroupOrientation enumeration value specifying the orientation of layout items/groups within the group.

|

Available values:

NameDescription
Vertical

Items/groups within layout group are arranged vertically.

| | Horizontal |

Items/groups within layout group are arranged horizontally.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Orientation property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-dashboard-json-data-source/CS/DashboardJsonExample/Form1.cs#L43

csharp
dashboard.RebuildLayout();
dashboard.LayoutRoot.Orientation = DashboardLayoutGroupOrientation.Vertical;
dashboardDesigner1.Dashboard = dashboard;

winforms-dashboard-data-federation/CS/DataFederationExample/Form1.cs#L56

csharp
dashboard.RebuildLayout();
dashboard.LayoutRoot.Orientation = DashboardLayoutGroupOrientation.Vertical;
dashboardDesigner1.Dashboard = dashboard;

winforms-dashboard-window-calculation-example/CS/WindowCalculationExample/TabPageLoadHelper.cs#L82

csharp
if ((copyTo is DashboardLayoutGroup) && (copyFrom is DashboardLayoutGroup))
    ((DashboardLayoutGroup)copyTo).Orientation = ((DashboardLayoutGroup)copyFrom).Orientation;
if (copyFrom is DashboardLayoutGroup)

winforms-dashboard-json-data-source/VB/DashboardJsonExample/Form1.vb#L41

vb
dashboard.RebuildLayout()
dashboard.LayoutRoot.Orientation = DashboardLayoutGroupOrientation.Vertical
dashboardDesigner1.Dashboard = dashboard

winforms-dashboard-data-federation/VB/DataFederationExample/Form1.vb#L58

vb
dashboard.RebuildLayout()
dashboard.LayoutRoot.Orientation = DashboardLayoutGroupOrientation.Vertical
dashboardDesigner1.Dashboard = dashboard

winforms-dashboard-window-calculation-example/VB/WindowCalculationExample/TabPageLoadHelper.vb#L98

vb
copyTo.Weight = copyFrom.Weight
If(TypeOf copyTo Is DashboardLayoutGroup) AndAlso (TypeOf copyFrom Is DashboardLayoutGroup) Then CType(copyTo, DashboardLayoutGroup).Orientation = CType(copyFrom, DashboardLayoutGroup).Orientation
If TypeOf copyFrom Is DashboardLayoutGroup Then

See Also

DashboardLayoutGroup Class

DashboardLayoutGroup Members

DevExpress.DashboardCommon Namespace