xtrareports-devexpress-dot-xtrareports-dot-ui-dot-band-c4e34495.md
Specifies the band’s height (measured in report units).
Namespace : DevExpress.XtraReports.UI
Assembly : DevExpress.XtraReports.v25.2.dll
NuGet Package : DevExpress.Reporting.Core
[Browsable(true)]
[DefaultValue(100F)]
[SRCategory(ReportStringId.CatLayout)]
[XRLocalizable(true)]
public override float HeightF { get; set; }
<DefaultValue(100F)>
<Browsable(True)>
<SRCategory(ReportStringId.CatLayout)>
<XRLocalizable(True)>
Public Overrides Property HeightF As Single
| Type | Default | Description |
|---|---|---|
| Single | 100 |
A Single value representing the height of the band.
|
A band’s height is measured in the units set by the XtraReport.ReportUnit property.
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.
reporting-winforms-create-table-at-runtime/CS/Form1.cs#L57
pageHeaderBand.HeightF = headerTable.HeightF;
detailBand.HeightF = table.HeightF;
dateInfo.LeftF = report.PageSize.Width - report.Margins.Left - report.Margins.Right - dateInfo.WidthF;
dateInfo.TopF = dateInfo.Band.HeightF - dateInfo.HeightF;
float newWidth = PageWidth - Margins.Left - Margins.Right;
float newHeight = PageHeight - Margins.Top - Margins.Bottom - PageHeader.HeightF - PageFooter.HeightF;
xrPictureBox1.SizeF = new SizeF(newWidth, newHeight);
reporting-wpf-create-report-in-code/CS/RuntimeReportsApplication/MainWindow.xaml.cs#L83
reportHeader.Controls.Add(label);
reportHeader.HeightF = label.HeightF;
}
panel.Borders = BorderSide.All;
detail.HeightF = XRConvert.Convert(model.VerticalPitch, labelDpi, report.Dpi);
reporting-winforms-create-table-at-runtime/VB/Form1.vb#L48
pageHeaderBand.HeightF = headerTable.HeightF
detailBand.HeightF = table.HeightF
dateInfo.LeftF = report.PageSize.Width - report.Margins.Left - report.Margins.Right - dateInfo.WidthF
dateInfo.TopF = dateInfo.Band.HeightF - dateInfo.HeightF
Dim newWidth As Single = PageWidth - Margins.Left - Margins.Right
Dim newHeight As Single = PageHeight - Margins.Top - Margins.Bottom - PageHeader.HeightF - PageFooter.HeightF
xrPictureBox1.SizeF = New SizeF(newWidth, newHeight)
reporting-wpf-create-report-in-code/VB/RuntimeReportsApplication/MainWindow.xaml.vb#L92
reportHeader.Controls.Add(label)
reportHeader.HeightF = label.HeightF
End Sub
panel.Borders = BorderSide.All
detail.HeightF = XRConvert.Convert(model.VerticalPitch, labelDpi, report.Dpi)
Dim labelInfo = DevExpress.XtraReports.Wizards.Builder.ReportInfoFactory.CreateLabelInfo(GetDefaultLabelReportMode(model))
See Also