SpreadsheetGear 2023
Execute Method (CommandManager)

SpreadsheetGear.Commands Namespace > CommandManager Class : Execute Method
Specifies the command to be executed.
Executes the specified command by calling the command's Execute method.
Public Overridable Function Execute( _
   ByVal command As Command _
) As System.Boolean
Dim instance As CommandManager
Dim command As Command
Dim value As System.Boolean
value = instance.Execute(command)
public virtual System.bool Execute( 
   Command command


Specifies the command to be executed.

Return Value

true if the command is successfully executed, false otherwise.

Commands are owned by CommandManager after being executed, and will be disposed of immediately if they are not undoable. Undoable commands will be disposed of when they are no longer undoable or redoable.


Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also


CommandManager Class
CommandManager Members
Execute Method
Undo Method
Redo Method