Skip to main content

ISpreadsheetCommandFactoryService.CreateCommand(SpreadsheetCommandId) Method

Creates a command for use in the SpreadsheetControl.

Namespace: DevExpress.XtraSpreadsheet.Services

Assembly: DevExpress.Spreadsheet.v23.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

SpreadsheetCommand CreateCommand(
    SpreadsheetCommandId id
)

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