IUiChartClass.ShowLegendFormatDialog

Syntax

ShowLegendFormatDialog(Legend: IChartLegend; Parent: IWin32Window);

Parameters

Legend: Chart legend

Parent - a dialog box, for which this dialog box will be modal.

Description

The ShowLegendFormatDialog method opens the Legend Format dialog box.

Example

To execute this example a regular report is required. Active sheet of the report contains a chart with the identifier Chart1.

Sub LegendFormatDialog;
Var
    Wnd: IWin32Window;
    Sheet: IPrxSheet;
    Chart: IChart;
Begin
    Wnd := WinApplication.Instance.Windows.ForegroundWindow;
    Sheet := PrxReport.ActiveReport.ActiveSheet;
    Chart := (Sheet As IPrxTable).TabSheet.Objects.Object("Chart1"As IChart;
    UiChartClass.ShowLegendFormatDialog(Chart.Legend, Wnd);
End Sub LegendFormatDialog;

This example is a regular report macro. After executing the. macro the Legend Format dialog box is displayed for the specified chart.

See also:

IUiChartClass