menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HistoryCommand - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class HistoryCommand

    A class that encapsulates a command to be executed at a later point in time.

    Inheritance
    System.Object
    HistoryCommandBase
    HistoryCommand
    HistoryAutoFitColumnCommand
    HistoryAutoFitRowHeightCommand
    HistoryBoldCommand
    HistoryBorderCommand
    HistoryCellCommentCommand
    HistoryCellValueCommand
    HistoryClearCommand
    HistoryClipBoardCommand
    HistoryConditionalFormatCommand
    HistoryCopyFillSeriesCommand
    HistoryDataValidationCommand
    HistoryDefaultWidthCommand
    HistoryDeleteCommand
    HistoryFontCommand
    HistoryFormatCommand
    HistoryFormatTableCommand
    HistoryHAlignCommand
    HistoryHiddenCellCommand
    HistoryHyperlinkCommand
    HistoryInsertCommand
    HistoryItalicCommand
    HistoryLockCellCommand
    HistoryMergeCommand
    HistoryNameRangeCommand
    HistoryNumberFormatCommand
    HistoryOrientationCommand
    HistoryOutlinesCommand
    HistoryResizeColumnCommand
    HistoryResizeRowCommand
    HistoryStrikethroughCommand
    HistoryStyleCommand
    HistoryUnderlineCommand
    HistoryVAlignCommand
    HistoryWrapText
    Inherited Members
    HistoryCommandBase.Range
    HistoryCommandBase.SfSpreadsheet
    Namespace: Syncfusion.UI.Xaml.Spreadsheet.History
    Assembly: Syncfusion.SfSpreadsheet.UWP.dll
    Syntax
    public abstract class HistoryCommand : HistoryCommandBase
    Remarks

    The Execute(CommandMode) method is overriden in specialized command classes and performs the command that is saved in this command.

    Constructors

    HistoryCommand()

    Initializes a new HistoryCommand.

    Declaration
    protected HistoryCommand()

    HistoryCommand(SfSpreadsheet)

    Initializes a new HistoryCommand and associates it with a GridModel.

    Declaration
    protected HistoryCommand(SfSpreadsheet sfSpreadsheet)
    Parameters
    Type Name Description
    SfSpreadsheet sfSpreadsheet

    Properties

    Description

    Gets a description for the command.

    Declaration
    public override string Description { get; }
    Property Value
    Type
    System.String
    Overrides
    HistoryCommandBase.Description

    Methods

    Execute(CommandMode)

    Executes the transaction command in SfSpreadsheet.

    Declaration
    public override void Execute(CommandMode mode)
    Parameters
    Type Name Description
    CommandMode mode

    Holds the current process in SfSpreadsheet(either undo or redo).

    Overrides
    HistoryCommandBase.Execute(CommandMode)

    Pop(CommandMode)

    Returns a reference to the latest command in the stack and removes the command from the stack.

    Declaration
    public HistoryCommandBase Pop(CommandMode mode)
    Parameters
    Type Name Description
    CommandMode mode
    Returns
    Type Description
    HistoryCommandBase

    A reference to the latest HistoryCommandBase command.

    SetDescription(String)

    Changes the description of this command.

    Declaration
    protected void SetDescription(string value)
    Parameters
    Type Name Description
    System.String value

    The new description text.

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved