Type | Description | |||
Action as Variant |
[optional] A long expression that specifies the action being listed. If missing
or -1, all actions are listed.
The Action parameter can be one of the following:
For instance, UndoListAction(0) shows only AddBar actions in the undo stack. | |||
Count as Variant | [optional] A long expression that indicates the number of actions being listed. If missing or -1, all actions are listed. For instance, UndoListAction(0,1) shows only the last AddBar action being added to the undo stack | |||
String | A String expression that lists the Undo actions that may be performed. |
The records of the Undo/Redo queue may contain actions in the following format:
The records of the Undo/Redo queue may contain actions in the following format (available starting from 23.0):
Also, the Undo/Redo queue may include:
Each action is on a single line, and each field is separated by ; character. The lines are separated by "\r\n" characters ( vbCrLf in VB ).
For instance,
Here's a sample format of the UndoListAction property may get:
StartBlock MoveBar;1;E MoveBar;2;E MoveBar;3; MoveBar;4; EndBlock MoveBar;1; DefineSummaryBars;4;;1;E AddBar;1;E DefineSummaryBars;4;;2;E AddBar;2;E DefineSummaryBars;4;;3; AddBar;3; AddBar;4; DefineSummaryBars;1;;4;E GroupBars;3;E;0;4;E;-1 GroupBars;3;E;0;4;E;-1 AddLink;L2 AddBar;4;E GroupBars;2;;0;3;E;-1 GroupBars;2;;0;3;E;-1 AddLink;L1 DefineSummaryBars;1;;3;E AddBar;3;E DefineSummaryBars;1;;2; AddBar;2; AddBar;1;
The following VB sample splits the UndoListAction value and adds each action to a listbox control:
List1.Clear Dim s() As String s = Split(G2antt1.Chart.UndoListAction, vbCrLf) For i = LBound(s) To UBound(s) List1.AddItem s(i) Next