Back to Devexpress

MeasureValue.DisplayText Property

dashboard-devexpress-dot-dashboardcommon-dot-measurevalue-92bda4c9.md

latest2.5 KB
Original Source

MeasureValue.DisplayText Property

Gets the measure display text.

Namespace : DevExpress.DashboardCommon

Assembly : DevExpress.Dashboard.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public string DisplayText { get; }
vb
Public ReadOnly Property DisplayText As String

Property Value

TypeDescription
String

A String value that is the measure display text.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DisplayText 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.

how-to-display-the-total-value-above-each-pie-chart/CS/TotalsInChartsExample/Form1.cs#L28

csharp
if (axisPoint != null) {
    var total = data.GetSlice(axisPoint).GetValue(measure).DisplayText;
    var view = series.View as PieSeriesView;

how-to-display-the-total-value-above-each-pie-chart/VB/TotalsInChartsExample/Form1.vb#L28

vb
If axisPoint IsNot Nothing Then
    Dim total = data.GetSlice(axisPoint).GetValue(measure).DisplayText
    Dim view = TryCast(series.View, PieSeriesView)

See Also

Value

MeasureValue Class

MeasureValue Members

DevExpress.DashboardCommon Namespace