dashboard-devexpress-dot-dashboardcommon-dot-layoutoptions.md
Provides access to the dashboard surface‘s height options.
Namespace : DevExpress.DashboardCommon
Assembly : DevExpress.Dashboard.v25.2.Core.dll
NuGet Package : DevExpress.Dashboard.Core
public LayoutDimensionOptions Height { get; }
Public ReadOnly Property Height As LayoutDimensionOptions
| Type | Description |
|---|---|
| LayoutDimensionOptions |
A LayoutDimensionOptions object that contains options for dimensions of a dashboard surface.
|
You can access this nested property as listed below:
| Object Type | Path to Height |
|---|---|
| Dashboard |
.LayoutOptions .Height
|
The following code snippet specifies the height and aligns the dashboard’s content horizontally:
using DevExpress.DashboardCommon;
namespace WinDashboardlayout {
public partial class DesignerForm1 : DevExpress.XtraBars.Ribbon.RibbonForm {
public DesignerForm1() {
InitializeComponent();
dashboardDesigner.CreateRibbon();
dashboardDesigner.LoadDashboard(@"Dashboards\dashboard1.xml");
dashboardDesigner.Dashboard.LayoutOptions.Width.Mode = LayoutDimensionMode.Auto;
dashboardDesigner.Dashboard.LayoutOptions.Height.Mode = LayoutDimensionMode.Fixed;
dashboardDesigner.Dashboard.LayoutOptions.Height.Value = 1080;
}
}
}
Imports DevExpress.DashboardCommon
Namespace WinDashboardlayout
Partial Public Class DesignerForm1
Inherits DevExpress.XtraBars.Ribbon.RibbonForm
Public Sub New()
InitializeComponent()
dashboardDesigner.CreateRibbon()
dashboardDesigner.LoadDashboard("Dashboards\dashboard1.xml")
dashboardDesigner.Dashboard.LayoutOptions.Width.Mode = LayoutDimensionMode.Auto
dashboardDesigner.Dashboard.LayoutOptions.Height.Mode = LayoutDimensionMode.Fixed
dashboardDesigner.Dashboard.LayoutOptions.Height.Value = 1080
End Sub
End Class
End Namespace
See Also