IChartCaption.HorizontalAlignment

Syntax

HorizontalAlignment: ChartHorizontalAlignment;

Description

The HorizontalAlignment property determines a caption text alignment.

Example

Executing the example requires a regular report with the REGL_CHART identifier containing a chart.

Add links to the Metabase, Chart, Report, Tab system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    report: IPrxReport;
    chart: IChart;
Begin
    mb := MetabaseClass.Active;
    report := mb.ItemById("REGL_CHART").Edit As IPrxReport;
    chart := (report.ActiveSheet As IPrxTable).TabSheet.Objects.Item(0).Extension As IChart;
    chart.Caption.HorizontalAlignment := ChartHorizontalAlignment.Right;
    (report As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the chart text caption is aligned to the right.

See also:

IChartCaption