xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrcontrol-c0d987fe.md
Gets or sets the Y-coordinate of the control’s top edge (measured in report units).
Namespace : DevExpress.XtraReports.UI
Assembly : DevExpress.XtraReports.v25.2.dll
NuGet Package : DevExpress.Reporting.Core
[Browsable(false)]
public virtual float TopF { get; set; }
<Browsable(False)>
Public Overridable Property TopF As Single
| Type | Description |
|---|---|
| Single |
A Single value, representing the Y-coordinate of the top edge of the control and measured in the units set by the XtraReport.ReportUnit property.
|
The Y-coordinate of the control’s top edge is the Y-coordinate of the top edge of the RectangleF object returned by this control’s XRControl.BoundsF property.
The following code snippets (auto-collected from DevExpress Examples) contain references to the TopF 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.
dateInfo.Format = "Created at {0:h:mm tt dd MMMM yyyy}";
dateInfo.TopF = 100;
dateInfo.WidthF = 200;
reporting-wpf-create-report-in-code/CS/RuntimeReportsApplication/MainWindow.xaml.cs#L103
report.Bands.Add(detailBand);
labelDetail.TopF = detailBand.LocationFloat.Y + 20F;
detailBand.Controls.Add(labelDetail);
dateInfo.LeftF = report.PageSize.Width - report.Margins.Left - report.Margins.Right - dateInfo.WidthF;
dateInfo.TopF = dateInfo.Band.HeightF - dateInfo.HeightF;
reporting-winforms-sql-data-source-runtime/CS/RuntimeSqlDataSourceReportSample/ReportCreator.cs#L68
report.Bands.Add(detailBand);
labelDetail.TopF = detailBand.LocationFloat.Y + 20F;
detailBand.Controls.Add(labelDetail);
labelCategory.TopF = 15
detailBand.Controls.Add(labelCategory)
dateInfo.Format = "Created at {0:h:mm tt dd MMMM yyyy}"
dateInfo.TopF = 100
dateInfo.WidthF = 200
reporting-wpf-create-report-in-code/VB/RuntimeReportsApplication/MainWindow.xaml.vb#L113
report.Bands.Add(detailBand)
labelDetail.TopF = detailBand.LocationFloat.Y + 20.0F
detailBand.Controls.Add(labelDetail)
dateInfo.LeftF = report.PageSize.Width - report.Margins.Left - report.Margins.Right - dateInfo.WidthF
dateInfo.TopF = dateInfo.Band.HeightF - dateInfo.HeightF
reporting-winforms-sql-data-source-runtime/VB/RuntimeSqlDataSourceReportSample/ReportCreator.vb#L64
report.Bands.Add(detailBand)
labelDetail.TopF = detailBand.LocationFloat.Y + 20F
detailBand.Controls.Add(labelDetail)
See Also