version

fun version(forUndo: Boolean): HistoryIndex

Returns the history version for undo or redo operations.

Return

The history version number.

Parameters

forUndo

If true, returns the undo version; if false, returns the redo version.