HorizontalAlignment: ChartHorizontalAlignment;
HorizontalAlignment: Prognoz.Platform.Interop.Chart.ChartHorizontalAlignment;
The HorizontalAlignment property determines a caption text alignment.
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.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Chart;
Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Tab;
…
Public Shared Sub Main(Params: StartParams);
Var
mb: IMetabase;
report: IPrxReport;
chart: IChart;
Begin
mb := Params.Metabase;
report := mb.ItemById["REGL_CHART"].Edit() As IPrxReport;
chart := (report.ActiveSheet As IPrxTable).TabSheet.Objects.Item[0].Extension As IChart;
chart.Caption.HorizontalAlignment := ChartHorizontalAlignment.chaRight;
(report As IMetabaseObject).Save();
End Sub;
See also: