GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoUndoManager Class / MaximumEditCount Property
In This Topic
    MaximumEditCount Property
    In This Topic
    Gets or sets the maximum number of compound edits that this undo manager will remember.
    Syntax
    public int MaximumEditCount {get; set;}

    Property Value

    If the value is negative, no limit is assumed. A new value of zero is treated as if the new value were one. The initial value is -1.
    Remarks

    This property is useful in helping limit the memory consumption of typical application usage. But note that this only limits the number of compound edits, not the size of any individual GoUndoManagerCompoundEdit, which may still have an unlimited number of GoChangedEventArgss.

    Decreasing this value will not necessarily remove any existing edits if there currently exist more edits in AllEdits than the new value would allow.

    See Also