Back to Devexpress

ChartControl.SmallChartText Property

windowsforms-devexpress-dot-xtracharts-dot-chartcontrol-d8fe1163.md

latest2.6 KB
Original Source

ChartControl.SmallChartText Property

Gets the settings for the text to be displayed in the chart control, when it’s too small to fit the diagram.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.UI.dll

NuGet Package : DevExpress.Win.Charts

Declaration

csharp
public SmallChartText SmallChartText { get; }
vb
Public ReadOnly Property SmallChartText As SmallChartText

Property Value

TypeDescription
SmallChartText

A SmallChartText object, representing the small chart text options.

|

Remarks

Use the SmallChartText property, to access and customize the settings of the text, which is displayed by a chart at runtime, if the chart’s dimensions are too small for its diagram to be drawn.

To access options of the text that inform that the chart has no data to display, use the ChartControl.EmptyChartText property.

For the WebChartControl, use the similar WebChartControl.SmallChartText property.

Example

This example demonstrates how to provide a custom text for a chart, when it’s too small for its diagram to be drawn.

csharp
SmallChartText myText = chartControl1.SmallChartText;
myText.Antialiasing = true;
myText.Text = "Increase the chart's size, to view its layout.";
myText.TextColor = Color.Beige;
vb
Dim myText As SmallChartText = chartControl1.SmallChartText
myText.Antialiasing = True
myText.Text = "Increase the chart's size, to view its layout."
myText.TextColor = Color.Beige

See Also

EmptyChartText

ChartControl Class

ChartControl Members

DevExpress.XtraCharts Namespace