Spread WPF 17
GrapeCity.Windows.SpreadSheet.UI Namespace / UndoManager Class / UndoManager Constructor
The context of the UndoManager class.
The maximum level of the actions that can be undone.
if set to true allow undo; otherwise, do not allow undo.


In This Topic
    UndoManager Constructor
    In This Topic
    Initializes a new instance of the UndoManager class.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal context As Object, _
       ByVal maxLength As Integer, _
       ByVal allowUndo As Boolean _
    )
    'Usage
     
    Dim context As Object
    Dim maxLength As Integer
    Dim allowUndo As Boolean
     
    Dim instance As New UndoManager(context, maxLength, allowUndo)
    public UndoManager( 
       object context,
       int maxLength,
       bool allowUndo
    )

    Parameters

    context
    The context of the UndoManager class.
    maxLength
    The maximum level of the actions that can be undone.
    allowUndo
    if set to true allow undo; otherwise, do not allow undo.
    Remarks
    -1 indicates the maximum level is unlimited.
    See Also