windowsforms-devexpress-dot-xtracharts-dot-chartcontrol-d8fe1163.md
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
public SmallChartText SmallChartText { get; }
Public ReadOnly Property SmallChartText As SmallChartText
| Type | Description |
|---|---|
| SmallChartText |
A SmallChartText object, representing the small chart text options.
|
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.
This example demonstrates how to provide a custom text for a chart, when it’s too small for its diagram to be drawn.
SmallChartText myText = chartControl1.SmallChartText;
myText.Antialiasing = true;
myText.Text = "Increase the chart's size, to view its layout.";
myText.TextColor = Color.Beige;
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