xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrcontrol-efb64837.md
Specifies the control’s width (measured in report units).
Namespace : DevExpress.XtraReports.UI
Assembly : DevExpress.XtraReports.v25.2.dll
NuGet Package : DevExpress.Reporting.Core
[Browsable(false)]
public virtual float WidthF { get; set; }
<Browsable(False)>
Public Overridable Property WidthF As Single
| Type | Description |
|---|---|
| Single |
A Single value representing the width 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 height is specified via the XRControl.HeightF property.
Note
Neither the XRControl.HeightF nor the 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 WidthF 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.
processedPage++;
tableHeader.WidthF = usablePageWidth - remainingSpace;
tableDetail.WidthF = usablePageWidth - remainingSpace;
icon.HeightF = 50;
icon.WidthF = 300;
icon.HeightF = 50;
icon.WidthF = 300;
headerBand.Controls.Add(icon);
reporting-wpf-create-report-in-code/CS/RuntimeReportsApplication/MainWindow.xaml.cs#L77
label.Text = caption;
label.WidthF = 300F;
reporting-winforms-sql-data-source-runtime/CS/RuntimeSqlDataSourceReportSample/ReportCreator.cs#L43
label.Text = caption;
label.WidthF = 300F;
processedPage += 1
tableHeader.WidthF = usablePageWidth - remainingSpace
tableDetail.WidthF = usablePageWidth - remainingSpace
picture.HeightF = 50
picture.WidthF = 300
icon.HeightF = 50
icon.WidthF = 300
headerBand.Controls.Add(icon)
reporting-wpf-create-report-in-code/VB/RuntimeReportsApplication/MainWindow.xaml.vb#L86
label.Text = caption
label.WidthF = 300.0F
reporting-winforms-sql-data-source-runtime/VB/RuntimeSqlDataSourceReportSample/ReportCreator.vb#L40
label.Text = caption
label.WidthF = 300F
See Also