Spread for WPF allows you to create and use external variables within worksheets. These external variables are defined by symbols and have case-sensitive names. Unlike regular cells, external variables, which represent logical cells in a worksheet, do not have a cell context and are evaluated differently.
When working with external variables, keep the following considerations in mind:
To add an external variable to a workbook, use the AddExternalVariable method of the INames interface. When using this method, you must specify the name of the external variable along with its formula or value. You can also implement custom logic to create an instance of the ExternalVariable class and bind an external object.
The following GIF illustrates how to use external variables within a worksheet by defining detailed information about the sales report on a separate sheet of the workbook.
Refer to the following example code to create and use external variable within the worksheet.