Back to Devexpress

Band.HeightF Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-band-c4e34495.md

latest6.5 KB
Original Source

Band.HeightF Property

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

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[Browsable(true)]
[DefaultValue(100F)]
[SRCategory(ReportStringId.CatLayout)]
[XRLocalizable(true)]
public override float HeightF { get; set; }
vb
<DefaultValue(100F)>
<Browsable(True)>
<SRCategory(ReportStringId.CatLayout)>
<XRLocalizable(True)>
Public Overrides Property HeightF As Single

Property Value

TypeDefaultDescription
Single100

A Single value representing the height of the band.

|

Remarks

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

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

winforms-dashboard-add-custom-information-to-the-exported-dashboard/CS/WinViewer_CustomExport/Form1.cs#L33

csharp
dateInfo.LeftF = report.PageSize.Width - report.Margins.Left - report.Margins.Right - dateInfo.WidthF;
dateInfo.TopF = dateInfo.Band.HeightF - dateInfo.HeightF;

reporting-winforms-dynamic-size-image-on-page-settings/CS/WindowsFormsApplication1/XtraReport1.cs#L41

csharp
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

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#L57

csharp
panel.Borders = BorderSide.All;
detail.HeightF = XRConvert.Convert(model.VerticalPitch, labelDpi, report.Dpi);

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

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

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

vb
dateInfo.LeftF = report.PageSize.Width - report.Margins.Left - report.Margins.Right - dateInfo.WidthF
dateInfo.TopF = dateInfo.Band.HeightF - dateInfo.HeightF

reporting-winforms-dynamic-size-image-on-page-settings/VB/WindowsFormsApplication1/XtraReport1.vb#L39

vb
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

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#L57

vb
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

ReportUnit

Band Class

Band Members

DevExpress.XtraReports.UI Namespace