Back to Devexpress

EmptyChartText Class

corelibraries-devexpress-dot-xtracharts-5f1c6395.md

latest2.8 KB
Original Source

EmptyChartText Class

Contains options of the text which is to be displayed at runtime when a chart has no data to display.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public class EmptyChartText :
    NotificationBase
vb
Public Class EmptyChartText
    Inherits NotificationBase

The following members return EmptyChartText objects:

LibraryRelated API Members
WinForms ControlsChartControl.EmptyChartText
ASP.NET MVC ExtensionsChartControlSettings.EmptyChartText
ASP.NET Web Forms ControlsWebChartControl.EmptyChartText
.NET Reporting ToolsXRChart.EmptyChartText

Remarks

An object of the EmptyChartText type can be accessed via the ChartControl.EmptyChartText (WebChartControl.EmptyChartText) property.

Example

This example demonstrates how to provide a text for a chart, which it should display at runtime, when there’s no data to be represented by the chart.

csharp
EmptyChartText myText = chartControl1.EmptyChartText;
myText.Antialiasing = true;
myText.Text = "There are no visible series to represent in the chart.";
myText.TextColor = Color.Beige;
vb
Dim myText As EmptyChartText = chartControl1.EmptyChartText
myText.Antialiasing = True
myText.Text = "There are no visible series to represent in the chart."
myText.TextColor = Color.Beige

Inheritance

Object ChartElement TitleBase Title MultilineTitle NotificationBase EmptyChartText

See Also

EmptyChartText Members

SmallChartText

DevExpress.XtraCharts Namespace