Class Scenario
Represents the scenario class used by the spreadsheet model.
Inherited Members
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class Scenario
Constructors
Scenario()
Represents the scenario class used by the spreadsheet model.
Declaration
public Scenario()
Fields
InputCells
Exposes the input cells associated with Scenario.
Declaration
public List<InputCells> InputCells
Field Value
| Type | Description |
|---|---|
| List<InputCells> | The input cells returned by the operation. |
Properties
Comment
Comment for this scenario, rich text not supported.
Declaration
public string Comment { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Count
Number of input cells.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
Hidden
Scenario is hidden when the sheet is protected and 'edit scenarios' is not enabled in sheet protection options. If the scenario is marked as hidden but sheet protection options specify to allow editing scenarios, then the scenario shall not be hidden.
Declaration
public bool Hidden { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Locked
Scenario is locked for editing when the sheet is protected. If sheet is protected and "edit scenarios" is enabled, then this setting is ignored.
Declaration
public bool Locked { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
Scenario's name (user input). Shall be unique for the workbook.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
User
Name of user who last changed the scenario.
Declaration
public string User { get; set; }
Property Value
| Type | Description |
|---|---|
| string |