[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Design.UndoManager.UndoDescription

UndoDescription Method

UndoDescription(int)

Retrieves a description of the specified undo action in a human-readable format.

Declaration
public string UndoDescription(int index)
Parameters
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.

Returns
Type Description
string

A string containing the description of the specified undo action.

Remarks

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.