Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

ISpreadsheetCommandFactoryService.CreateCommand(SpreadsheetCommandId) Method

Creates a command for use in the SpreadsheetControl.

Namespace: DevExpress.XtraSpreadsheet.Services

Assembly: DevExpress.Spreadsheet.v19.1.Core.dll

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateCommand(SpreadsheetCommandId) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also