Class HistoryList
HistoryList is LinearLinkedList containing HistoryEntries. Each HistoryEntry contains Command to execute
Inheritance
System.Object
HistoryList
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class HistoryList : Object
Constructors
HistoryList()
Declaration
Fields
m_bCanRedo
Declaration
protected bool m_bCanRedo
Field Value
m_bCanUndo
Declaration
protected bool m_bCanUndo
Field Value
m_nodeCurrent
Declaration
protected HistoryEntry m_nodeCurrent
Field Value
Properties
CanRedo
Gets a value indicating whether there is HistoryEntry to Redo.
Declaration
public bool CanRedo { get; }
Property Value
CanUndo
Gets a value indicating whether there is HistoryEntry to Undo.
Declaration
public bool CanUndo { get; }
Property Value
Methods
AddEntry(ICommand)
Adds new HistoryEntry to Historylist.
Declaration
public void AddEntry(ICommand command)
Parameters
| Type |
Name |
Description |
| ICommand |
command |
The command.
|
CanMerge(ICommand)
Declaration
public bool CanMerge(ICommand cmdMerging)
Parameters
| Type |
Name |
Description |
| ICommand |
cmdMerging |
|
Returns
ClearHistory()
Declaration
public void ClearHistory()
GetRedoCmd()
Fetches for HistoryEntry to Redo.
Declaration
public ICommand GetRedoCmd()
Returns
GetRedoDescriptions(Int32, out String[])
Declaration
public int GetRedoDescriptions(int nDepth, out string[] strRedoDesciptions)
Parameters
| Type |
Name |
Description |
| System.Int32 |
nDepth |
|
| System.String[] |
strRedoDesciptions |
|
Returns
GetUndoCmd()
Fetches HistoryEntry to Undo.
Declaration
public ICommand GetUndoCmd()
Returns
GetUndoDescriptions(Int32, out String[])
Declaration
public int GetUndoDescriptions(int nDepth, out string[] strUndoDesciptions)
Parameters
| Type |
Name |
Description |
| System.Int32 |
nDepth |
|
| System.String[] |
strUndoDesciptions |
|
Returns
Merge(ICommand)
Declaration
public void Merge(ICommand cmdToMerge)
Parameters
| Type |
Name |
Description |
| ICommand |
cmdToMerge |
|