[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Commands.Command

Command Class

Represents an abstract command.

Inheritance
Command
Implements
Namespace: GrapeCity.Spreadsheet.Commands
Assembly: GrapeCity.Spreadsheet.dll
Syntax
public abstract class Command : IDisposable
Public MustInherit Class Command
    Implements IDisposable

Constructors

Name Description
Command()

Initializes a new instance of the Command class.

Command(IWorkbook)

Initializes a new instance of the Command class with the specified workbook.

Command(IWorksheet)

Initializes a new instance of the Command class with the specified workbook.

Properties

Name Description
IsDisposed

Gets or sets a boolean value indicates whether this object is disposed.

IsUIAction

Gets or sets a boolean value indicates whether the command is executed from an UI action.

StopClipboardCopying

Gets a value indicating whether the CutCopyMode is set to None after this command executed.

UndoSupport

Gets the UndoSupport value indicates whether this command is undoable.

Workbook

Gets the workbook.

Worksheet

Gets or sets the worksheet.

Methods

Name Description
BeforeExecute()

Invoked before execute the command.

BeforeExecute(bool)

Invoked before execute the command.

CanChangeActiveCell(ref CommandResult)

Gets a boolean value indicating whether the Spread can change active cell base on the command result.

Clone()

Clones this command object.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(bool)

Releases unmanaged and managed resources.

Execute(Workbook)

Executes this command.

ExecuteCore(ref CommandResult, bool)

Executes this command.

OnException(Exception)

Called when the exception occurs.

OnException(string)

Called when the exception occurs.

OnRefineInputData()
Redo(Workbook)

Redo this command.

SaveUndoState()

Saves the data for undoing.

SaveUndoStateCore()

Saves the data for undoing.

Undo(bool)

Undoes this command.

See Also