Back to Devexpress

XRControl.TopF Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrcontrol-c0d987fe.md

latest6.1 KB
Original Source

XRControl.TopF Property

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

Declaration

csharp
[Browsable(false)]
public virtual float TopF { get; set; }
vb
<Browsable(False)>
Public Overridable Property TopF As Single

Property Value

TypeDescription
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.

|

Remarks

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.

web-forms-dashboard-add-custom-information-to-exported-dashboard/CS/WebDashboard_CustomExport/Default.aspx.cs#L56

csharp
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

csharp
report.Bands.Add(detailBand);
labelDetail.TopF = detailBand.LocationFloat.Y + 20F;
detailBand.Controls.Add(labelDetail);

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-sql-data-source-runtime/CS/RuntimeSqlDataSourceReportSample/ReportCreator.cs#L68

csharp
report.Bands.Add(detailBand);
labelDetail.TopF = detailBand.LocationFloat.Y + 20F;
detailBand.Controls.Add(labelDetail);

reporting-winforms-use-a-custom-function-in-query-expression/VB/SelectQueryWindowsFormsApplication/Form1.vb#L48

vb
labelCategory.TopF = 15
detailBand.Controls.Add(labelCategory)

web-forms-dashboard-add-custom-information-to-exported-dashboard/VB/WebDashboard_CustomExport/Default.aspx.vb#L55

vb
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

vb
report.Bands.Add(detailBand)
labelDetail.TopF = detailBand.LocationFloat.Y + 20.0F
detailBand.Controls.Add(labelDetail)

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-sql-data-source-runtime/VB/RuntimeSqlDataSourceReportSample/ReportCreator.vb#L64

vb
report.Bands.Add(detailBand)
labelDetail.TopF = detailBand.LocationFloat.Y + 20F
detailBand.Controls.Add(labelDetail)

See Also

BottomF

XRControl Class

XRControl Members

DevExpress.XtraReports.UI Namespace