ReadonlycommandsList of all executed commands.
ReadonlycurrentIndex of the current position in the command list (-1 = before first).
ReadonlymaxMaximum number of commands to retain in history.
ReadonlytotalTotal number of bytes affected by all commands in history.
Maintains the edit history for undo/redo functionality.