LayoutOptions.Height Property
Provides access to the dashboard surface‘s height options.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v24.2.Core.dll
NuGet Package: DevExpress.Dashboard.Core
#Declaration
public LayoutDimensionOptions Height { get; }
#Property Value
Type | Description |
---|---|
Layout |
A Layout |
#Property Paths
You can access this nested property as listed below:
Object Type | Path to Height |
---|---|
Dashboard |
|
#Remarks
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;
}
}
}