ISpreadsheetCommandFactoryService.CreateCommand(SpreadsheetCommandId) Method
Creates a command for use in the SpreadsheetControl.
Namespace: DevExpress.XtraSpreadsheet.Services
Assembly: DevExpress.Spreadsheet.v24.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
id | DevExpress.XtraSpreadsheet.Commands.SpreadsheetCommandId | A DevExpress.XtraSpreadsheet.Commands.SpreadsheetCommandId member specifying a command to create. |
Returns
Type | Description |
---|---|
DevExpress.XtraSpreadsheet.Commands.SpreadsheetCommand | A Spreadsheet command object. |
Remarks
To perform a command substitution in the SpreadsheetControl, create a SpreadsheetCommandFactoryServiceWrapper class descendant and override its SpreadsheetCommandFactoryServiceWrapper.CreateCommand method.
See Also