Open sandboxFocus

Method Trim

Trim(int)

Trims the current collection to a given maximal number of operations.

Declaration
public void Trim(int count)
Parameters
Type Name Description
int count

The maximal number of operations to keep in the collection.

Remarks

note

The UndoOperations collection is automatically trimmed to the value of MaximumOperationsCount property.

Trim(RestorePoint)

Trims the current collection to a specified RestorePoint.

Declaration
public void Trim(RestorePoint restorePoint)
Parameters
Type Name Description
RestorePoint restorePoint

A token to the RestorePoint to which the current collection should be trimmed.