Back to Devexpress

XRControl.HeightF Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrcontrol-94292cc6.md

latest6.0 KB
Original Source

XRControl.HeightF Property

Specifies the control’s height (measured in report units).

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[Browsable(false)]
public virtual float HeightF { get; set; }
vb
<Browsable(False)>
Public Overridable Property HeightF As Single

Property Value

TypeDescription
Single

A Single value representing the height of the control. This value cannot be less than 2 units.

|

Remarks

A control’s width and height are measured in the units set by the XtraReport.ReportUnit property.

A control’s width is specified via the XRControl.WidthF property.

Note

Neither the HeightF nor the XRControl.WidthF property can be set to a value that is less than 2 units.

The following code snippets (auto-collected from DevExpress Examples) contain references to the HeightF 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-add-custom-information-to-the-exported-dashboard/CS/WinViewer_CustomExport/Form1.cs#L18

csharp
icon.Image = Properties.Resources.dxLogo;
icon.HeightF = 50;
icon.WidthF = 300;

reporting-add-a-bar-code-to-a-report/CS/Form1.cs#L340

csharp
barCode.WidthF = 300f;
barCode.HeightF = 50f;

reporting-winforms-create-table-at-runtime/CS/Form1.cs#L57

csharp
pageHeaderBand.HeightF = headerTable.HeightF;
detailBand.HeightF = table.HeightF;

reporting-wpf-create-report-in-code/CS/RuntimeReportsApplication/MainWindow.xaml.cs#L83

csharp
reportHeader.Controls.Add(label);
    reportHeader.HeightF = label.HeightF;
}

reporting-winforms-label-report-in-code/CS/Reporting_how-to-create-a-label-report-at-runtime-t473792/LabelReportRuntime/CustomLabelReportBuilder.cs#L55

csharp
panel.WidthF = labelWidth;
panel.HeightF = labelHeight;
panel.Borders = BorderSide.All;

winforms-dashboard-add-custom-information-to-the-exported-dashboard/VB/WinViewer_CustomExport/Form1.vb#L17

vb
picture.Image = My.Resources.dxLogo
picture.HeightF = 50
picture.WidthF = 300

reporting-winforms-create-table-at-runtime/VB/Form1.vb#L48

vb
pageHeaderBand.HeightF = headerTable.HeightF
detailBand.HeightF = table.HeightF

reporting-wpf-create-report-in-code/VB/RuntimeReportsApplication/MainWindow.xaml.vb#L92

vb
reportHeader.Controls.Add(label)
    reportHeader.HeightF = label.HeightF
End Sub

reporting-winforms-label-report-in-code/VB/Reporting_how-to-create-a-label-report-at-runtime-t473792/LabelReportRuntime/CustomLabelReportBuilder.vb#L55

vb
panel.WidthF = labelWidth
panel.HeightF = labelHeight
panel.Borders = BorderSide.All

reporting-winforms-sql-data-source-runtime/VB/RuntimeSqlDataSourceReportSample/ReportCreator.vb#L46

vb
reportHeader.Controls.Add(label)
    reportHeader.HeightF = label.HeightF
End Sub

See Also

WidthF

XRControl Class

XRControl Members

DevExpress.XtraReports.UI Namespace