Back to Devexpress

XRFieldEmbeddableControl.Text Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrfieldembeddablecontrol.md

latest6.1 KB
Original Source

XRFieldEmbeddableControl.Text Property

Bindable. Specifies the control’s text.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
public override string Text { get; set; }
vb
Public Overrides Property Text As String

Property Value

TypeDescription
String

A String value, specifying the control’s text.

|

Remarks

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.

reporting-mvc-generate-report-dynamically-for-specified-query/CS/ReportForQueryExample/PredefinedReports/TestReport.cs#L67

csharp
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

csharp
{
    ((XRLabel)sender).Text += currentDetail.ToString();
    ((XRLabel)sender).Text += @"/";

winforms-scheduler-print-appointments-using-reports/CS/PrintingViaReports/XtraReport1.cs#L46

csharp
// 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

csharp
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

csharp
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

vb
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

vb
' 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

vb
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

vb
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

vb
label.Font = New DXFont("Tahoma", 12, DXFontStyle.Bold)
label.Text = caption
label.WidthF = 300.0F

See Also

XRFieldEmbeddableControl Class

XRFieldEmbeddableControl Members

DevExpress.XtraReports.UI Namespace