Back to Devexpress

XRControl.Text Property

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

latest3.7 KB
Original Source

XRControl.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
[DefaultValue("")]
[SRCategory(ReportStringId.CatData)]
[XRLocalizable(true)]
public virtual string Text { get; set; }
vb
<SRCategory(ReportStringId.CatData)>
<DefaultValue("")>
<XRLocalizable(True)>
Public Overridable Property Text As String

Property Value

TypeDefaultDescription
StringString.Empty

A String value, containing the text associated with the control.

|

Remarks

Not all descendants of the XRControl class use the Text property. For example, the Band class descendants ignore the Text property.

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.

wpf-reporting-register-custom-control-in-designer/CS/XRProgressBar.cs#L34

csharp
public override string Text {
    get { return base.Text; }
    set { base.Text = value; }

reporting-wpf-report-designer-customize-controls-smart-tag/CS/XRProgressBar.cs#L34

csharp
public override string Text {
    get { return base.Text; }
    set { base.Text = value; }

wpf-reporting-register-custom-control-in-designer/VB/XRProgressBar.vb#L43

vb
Get
    Return MyBase.Text
End Get

reporting-wpf-report-designer-customize-controls-smart-tag/VB/XRProgressBar.vb#L44

vb
Get
    Return MyBase.Text
End Get

See Also

XRControl Class

XRControl Members

DevExpress.XtraReports.UI Namespace