Skip to main content
A newer version of this page is available. .

SpreadsheetControl Class

Emulates the Microsoft® Excel® look and feel and allows you to create, load, edit, save and print spreadsheet documents.

Namespace: DevExpress.Xpf.Spreadsheet

Assembly: DevExpress.Xpf.Spreadsheet.v18.2.dll

Declaration

public class SpreadsheetControl :
    Control,
    IGestureClient,
    IMouseWheelScrollClient,
    IToolTipControlClient,
    IWin32Window,
    IDisposable,
    ILogicalOwner,
    IInputElement,
    IOfficeFontSizeProvider,
    ISpreadsheetDocumentServer,
    IBatchUpdateable,
    IServiceContainer,
    IServiceProvider,
    ISpreadsheetControl,
    ISpreadsheetComponent,
    ISupportsContentChanged,
    ICommandAwareControl<SpreadsheetCommandId>,
    IInnerSpreadsheetControlOwner,
    IInnerSpreadsheetDocumentServerOwner,
    INotifyPropertyChanged

The following members return SpreadsheetControl objects:

Remarks

The SpreadsheetControl class specifies a visual control to create, load, modify, print, save and convert spreadsheet documents in different formats.

WPF_SpreadsheetControl_Class

A document loaded into the spreadsheet control is a workbook that exposes the IWorkbook interface and is accessible using the SpreadsheetControl.Document property. The IWorkbook interface provides a comprehensive set of properties and methods to manipulate worksheets, rows, columns and cells of the corresponding workbook. See the Examples section for details.

The SpreadsheetControl’s automated formula calculation engine allows you to perform complex calculations using various functions and cell references and create shared and array formulas. You can also create your own custom functions to add to the built-in functions for use in formulas.

The SpreadsheetControl provides a set of tools to format worksheet cells, supports defined names, tables, pivot tables, charts, pictures and shapes, and introduces the mail merge mechanism.

The SpreadsheetControl.Options property provides access to the SpreadsheetControlOptions object that stores settings specific to the SpreadsheetControl. Use the SpreadsheetControlOptions.Behavior property to access an object that enables you to apply restrictions to different spreadsheet operations (such as creating, loading, modifying and printing workbooks). The SpreadsheetControlOptions.Print options allow you to control how a printed document is generated and previewed. The SpreadsheetControlOptions.View options specify the display settings for the SpreadsheetControl.

For detailed information on the SpreadsheetControl user interface and built-in dialogs, refer to the Visual Elements section.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SpreadsheetControl class.

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