Class HistoryList
HistoryList is LinearLinkedList containing HistoryEntries. Each HistoryEntry contains Command to execute
Inheritance
System.Object
HistoryList
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class HistoryList
Constructors
HistoryList()
Declaration
public HistoryList()
Fields
m_bCanRedo
Declaration
protected bool m_bCanRedo
Field Value
Type |
---|
System.Boolean |
m_bCanUndo
Declaration
protected bool m_bCanUndo
Field Value
Type |
---|
System.Boolean |
m_nodeCurrent
Declaration
protected HistoryEntry m_nodeCurrent
Field Value
Type |
---|
HistoryEntry |
Properties
CanRedo
Gets a value indicating whether there is HistoryEntry to Redo.
Declaration
public bool CanRedo { get; }
Property Value
Type |
---|
System.Boolean |
CanUndo
Gets a value indicating whether there is HistoryEntry to Undo.
Declaration
public bool CanUndo { get; }
Property Value
Type |
---|
System.Boolean |
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
Type |
---|
System.Boolean |
ClearHistory()
Clears HistoryList.
Declaration
public void ClearHistory()
GetRedoCmd()
Fetches for HistoryEntry to Redo.
Declaration
public ICommand GetRedoCmd()
Returns
Type | Description |
---|---|
ICommand | The command. |
GetRedoDescriptions(Int32, out String[])
Declaration
public int GetRedoDescriptions(int nDepth, out string[] strRedoDesciptions)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nDepth | |
System.String[] | strRedoDesciptions |
Returns
Type |
---|
System.Int32 |
GetUndoCmd()
Fetches HistoryEntry to Undo.
Declaration
public ICommand GetUndoCmd()
Returns
Type | Description |
---|---|
ICommand | The command. |
GetUndoDescriptions(Int32, out String[])
Declaration
public int GetUndoDescriptions(int nDepth, out string[] strUndoDesciptions)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nDepth | |
System.String[] | strUndoDesciptions |
Returns
Type |
---|
System.Int32 |
Merge(ICommand)
Declaration
public void Merge(ICommand cmdToMerge)
Parameters
Type | Name | Description |
---|---|---|
ICommand | cmdToMerge |