# UndoRedoEventArgs class

Namespace: [Rhino.Commands](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.commands.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md) · Since v5.0

```cs
public class UndoRedoEventArgs : EventArgs
```

Undo Redo Event Arguments

## Properties

- [CommandId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.undoredoeventargs/commandid.md): The id of the Rhino command. This can be Guid.Empty.
- [DocumentSerialNumber](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.undoredoeventargs/documentserialnumber.md): The document runtime serial number.
- [IsBeforeBeginRecording](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.undoredoeventargs/isbeforebeginrecording.md)
- [IsBeforeEndRecording](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.undoredoeventargs/isbeforeendrecording.md)
- [IsBeginRecording](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.undoredoeventargs/isbeginrecording.md)
- [IsBeginRedo](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.undoredoeventargs/isbeginredo.md)
- [IsBeginUndo](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.undoredoeventargs/isbeginundo.md)
- [IsEndRecording](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.undoredoeventargs/isendrecording.md)
- [IsEndRedo](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.undoredoeventargs/isendredo.md)
- [IsEndUndo](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.undoredoeventargs/isendundo.md)
- [IsPurgeRecord](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.undoredoeventargs/ispurgerecord.md)
- [UndoSerialNumber](https://developer.rhino3d.com/api/rhinocommon/type/rhino.commands.undoredoeventargs/undoserialnumber.md): The undo record serial number.
