xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrfieldembeddablecontrol.md
Bindable. Specifies the control’s text.
Namespace : DevExpress.XtraReports.UI
Assembly : DevExpress.XtraReports.v25.2.dll
NuGet Package : DevExpress.Reporting.Core
public override string Text { get; set; }
Public Overrides Property Text As String
| Type | Description |
|---|---|
| String |
A String value, specifying the control’s text.
|
Note
The Text property is bindable, which means that it can be bound to a data field in a report’s data source. To learn more, see the Binding Report Controls to Data section.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Text 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.
cell.Width = 100;
cell.Text = dc.Name;
dynamicTable.Rows.FirstRow.Cells.Add(cell);
reporting-winforms-repeat-detail-band-multiple-times/CS/RepeatDetailBandExample/XtraReport1.cs#L19
{
((XRLabel)sender).Text += currentDetail.ToString();
((XRLabel)sender).Text += @"/";
winforms-scheduler-print-appointments-using-reports/CS/PrintingViaReports/XtraReport1.cs#L46
// Fill the label with color
Color curColor = Color.FromArgb(Int32.Parse(((XRLabel)sender).Text));
((XRLabel)sender).BackColor = curColor;
reporting-web-forms-handle-server-side-errors/CS/DXWebApplication1/Reports/XtraReport3.cs#L65
this.xrLabel1.SizeF = new System.Drawing.SizeF(100F, 23F);
this.xrLabel1.Text = "xrLabel1";
//
reporting-wpf-create-report-in-code/CS/RuntimeReportsApplication/MainWindow.xaml.cs#L76
label.Font = new DXFont("Tahoma", 12, DXFontStyle.Bold);
label.Text = caption;
label.WidthF = 300F;
reporting-winforms-repeat-detail-band-multiple-times/VB/RepeatDetailBandExample/XtraReport1.vb#L17
Private Sub xrLabel5_BeforePrint(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles xrLabel5.BeforePrint
DirectCast(sender, XRLabel).Text &= currentDetail.ToString()
DirectCast(sender, XRLabel).Text &= "/"
winforms-scheduler-print-appointments-using-reports/VB/PrintingViaReports/XtraReport1.vb#L48
' Fill the label with color
Dim curColor As Color = Color.FromArgb(Int32.Parse(DirectCast(sender, XRLabel).Text))
DirectCast(sender, XRLabel).BackColor = curColor
asp-net-mvc-grid-create-report-based-on-grid-layout/VB/E4755/Models/ReportHelperMVC.vb#L74
Dim l As New XRLabel()
l.Text = groupedColumn.FieldName & ": [" & groupedColumn.FieldName & "]"
l.LocationF = New PointF(initialGroupOffset + i * 10, 0)
reporting-web-forms-handle-server-side-errors/VB/DXWebApplication1/Reports/XtraReport3.vb#L63
Me.xrLabel1.SizeF = New System.Drawing.SizeF(100F, 23F)
Me.xrLabel1.Text = "xrLabel1"
'
reporting-wpf-create-report-in-code/VB/RuntimeReportsApplication/MainWindow.xaml.vb#L85
label.Font = New DXFont("Tahoma", 12, DXFontStyle.Bold)
label.Text = caption
label.WidthF = 300.0F
See Also
XRFieldEmbeddableControl Class