Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetHistoryCustomCommand Class

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

#Declaration

Delphi
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