HorizontalAlignment: ChartHorizontalAlignment;
HorizontalAlignment: Prognoz.Platform.Interop.Chart.ChartHorizontalAlignment;
The HorizontalAlignment property determines the alignment of the title text.
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 text of the title of the chart is right-aligned.
Requirements and the result of execution of the Fore.NET example are similar to 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: