Skip to main content

TdxSpreadSheetHistoryCustomCommand Class

The base class for all classes that implement document change commands in the spreadsheet action history.

Declaration

TdxSpreadSheetHistoryCustomCommand = class(
    TObject
)

Remarks

A recorded history action contains one or more commands that reflect individual changes between two spreadsheet document states. Each change command (a TdxSpreadSheetHistoryCustomCommand class descendant) implements forward and reverse change algoritms applicable to a specific worksheet content type.

The TdxSpreadSheetHistoryCustomCommand class has the following members that allow you to:

  • Access the target worksheet (View).

  • Identify if two commands share the target affected by the recorded changes (CompatibleWith).

  • Roll back or reapply the change to the target worksheet (Undo and Redo).

  • Access the history action to which the change command belongs (Owner).

  • Obtain a reference to the compatible history action class (ActionClass).

A spreadsheet control’s History.AddCommand procedure accepts a TdxSpreadSheetHistoryCustomCommand object.

Inheritance

TObject
TdxSpreadSheetHistoryCustomCommand
See Also