Back to Devexpress

LayoutOptions.Height Property

dashboard-devexpress-dot-dashboardcommon-dot-layoutoptions.md

latest3.0 KB
Original Source

LayoutOptions.Height Property

Provides access to the dashboard surface‘s height options.

Namespace : DevExpress.DashboardCommon

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

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public LayoutDimensionOptions Height { get; }
vb
Public ReadOnly Property Height As LayoutDimensionOptions

Property Value

TypeDescription
LayoutDimensionOptions

A LayoutDimensionOptions object that contains options for dimensions of a dashboard surface.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Height
Dashboard

.LayoutOptions .Height

|

Remarks

The following code snippet specifies the height and aligns the dashboard’s content horizontally:

csharp
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;
        }
    }
}
vb
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

LayoutOptions Class

LayoutOptions Members

DevExpress.DashboardCommon Namespace