IChartExternLegend.UndoRedo

Syntax

UndoRedo: IUndoRedo;

Description

The UndoRedo property determines parameters of the undo/redo stack of chart external legend.

Example

Executing the example requires a regular report with the Report identifier. The report includes the following objects: a chart and an external legend.

Sub UserProc;
Var
    mb: IMetabase;
    rep: IPrxReport;
    chartlegend: IChartExternLegend;
    objects: ITabObjects;
    UnRed: IUndoRedo;    
Begin
    mb := MetabaseClass.Active;
    rep := mb.ItemById("Report").Edit As IPrxReport;
    objects := (rep.ActiveSheet As IprxTable).TabSheet.Objects;
    chartlegend := objects.Item(1As IChartExternLegend;
    chartlegend.AddChart(objects.Item(2As ichart);
    UnRed:=chartlegend.UndoRedo;
    UnRed.Enabled:= True;
    UnRed.Limit:= 50;
    (rep As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the undo/redo stack is available for the chart external legend with the number of 50 available undo/redo operations.

See also:

IChartExternLegend