AutoTextSpacing: Boolean;
The AutoTextSpacing property determines the distance from a label to an axis line that is set automatically.
The property is set to True by default. The distance set automatically is equal to 2 mm. When the value is changed to False, the TextSpacing value is applied. This property is saved with the chart. If an object from the previous version is loaded, the following properties are set for it by default: TextAlignment, AutoTextSpacing, TextSpacing and TextVisible.
Executing the example requires a form, the Button1 button located on the form, the ChartBox and UiChart components used as data sources.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
ay: IChartAxis;
Begin
ay:= UiChart1.Chart.AxisY;
ay.TextSpacing:= 3.0;
ay.AutoTextSpacing:= False;
End Sub Button1OnClick;
Clicking the Button1 button sets the minimum distance from the label to the Y axis line that equals to 3 mm.
See also: