[]
Retrieves a description of the specified undo action in a human-readable format.
public string UndoDescription(int index)
Type | Name | Description |
---|---|---|
int | index | The zero-based index of the undo action for which to retrieve the description. Index 0 corresponds to the oldest action in the undo stack. |
Type | Description |
---|---|
string | A string containing the description of the specified undo action. |
This method translates the index provided to match the internal representation used by the undo engine, where the last operation (the most recent one) has an index of 0. It then retrieves the name or description of the undo action at the calculated index. This allows users to understand what action will be undone if they perform an undo operation.