Back to Devexpress

XRLabel.Value Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrlabel-01c45810.md

latest3.1 KB
Original Source

XRLabel.Value Property

Specifies a label’s actual value.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
public override object Value { get; set; }
vb
Public Overrides Property Value As Object

Property Value

TypeDescription
Object

A Object specifying an actual control value.

|

Remarks

The Value property defines the value obtained after applying a binding associated to the XRControl.Text property (an ExpressionBinding or XRBinding depending on the UserDesignerOptions.DataBindingMode property value).

See Binding Report Controls to Data to learn more about providing data to report controls in different binding modes.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Value 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-winforms-export-xls-diff-sheets/CS/reporting-example-export/XtraReport1.cs#L17

csharp
categoryNameLabel.Text = categoryName;
    categoryNameLabel.Value = categoryName;
}

reporting-winforms-export-xls-diff-sheets/VB/reporting-example-export/XtraReport1.vb#L8

vb
categoryNameLabel.Text = categoryName
    categoryNameLabel.Value = categoryName
End Sub

See Also

XRLabel Class

XRLabel Members

DevExpress.XtraReports.UI Namespace