SpreadsheetGear 2017
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.
Syntax
'Declaration
 
Public Overridable Function Execute( _
   ByVal command As Command _
) As System.Boolean
'Usage
 
Dim instance As CommandManager
Dim command As Command
Dim value As System.Boolean
 
value = instance.Execute(command)
public virtual System.bool Execute( 
   Command command
)
public function Execute( 
    command: Command
): System.Boolean; virtual; 
public function Execute( 
   command : Command
) : System.boolean;
public: virtual System.bool Execute( 
   Command* command
) 
public:
virtual System.bool Execute( 
   Command^ command
) 

Parameters

command
Specifies the command to be executed.

Return Value

true if the command is successfully executed, false otherwise.
Remarks

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.

Requirements

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

Reference

CommandManager Class
CommandManager Members
Execute Method
Undo Method
Redo Method