xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrcontrol-94292cc6.md
Specifies the control’s height (measured in report units).
Namespace : DevExpress.XtraReports.UI
Assembly : DevExpress.XtraReports.v25.2.dll
NuGet Package : DevExpress.Reporting.Core
[Browsable(false)]
public virtual float HeightF { get; set; }
<Browsable(False)>
Public Overridable Property HeightF As Single
| Type | Description |
|---|---|
| Single |
A Single value representing the height of the control. This value cannot be less than 2 units.
|
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.
icon.Image = Properties.Resources.dxLogo;
icon.HeightF = 50;
icon.WidthF = 300;
reporting-add-a-bar-code-to-a-report/CS/Form1.cs#L340
barCode.WidthF = 300f;
barCode.HeightF = 50f;
reporting-winforms-create-table-at-runtime/CS/Form1.cs#L57
pageHeaderBand.HeightF = headerTable.HeightF;
detailBand.HeightF = table.HeightF;
reporting-wpf-create-report-in-code/CS/RuntimeReportsApplication/MainWindow.xaml.cs#L83
reportHeader.Controls.Add(label);
reportHeader.HeightF = label.HeightF;
}
panel.WidthF = labelWidth;
panel.HeightF = labelHeight;
panel.Borders = BorderSide.All;
picture.Image = My.Resources.dxLogo
picture.HeightF = 50
picture.WidthF = 300
reporting-winforms-create-table-at-runtime/VB/Form1.vb#L48
pageHeaderBand.HeightF = headerTable.HeightF
detailBand.HeightF = table.HeightF
reporting-wpf-create-report-in-code/VB/RuntimeReportsApplication/MainWindow.xaml.vb#L92
reportHeader.Controls.Add(label)
reportHeader.HeightF = label.HeightF
End Sub
panel.WidthF = labelWidth
panel.HeightF = labelHeight
panel.Borders = BorderSide.All
reporting-winforms-sql-data-source-runtime/VB/RuntimeSqlDataSourceReportSample/ReportCreator.vb#L46
reportHeader.Controls.Add(label)
reportHeader.HeightF = label.HeightF
End Sub
See Also