Freigeben über


Scenario-Klasse

Scenario.When the object is serialized out as xml, its qualified name is x:scenario.

Vererbungshierarchie

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Spreadsheet.Scenario

Namespace:  DocumentFormat.OpenXml.Spreadsheet
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(InputCells))> _
Public Class Scenario _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As Scenario
[ChildElementInfoAttribute(typeof(InputCells))]
public class Scenario : OpenXmlCompositeElement

Hinweise

The following table lists the possible child types:

  • InputCells <x:inputCells>

[ISO/IEC 29500-1 1. Ausgabe]

18.3.1.75 scenario (Scenario)

An individual scenario description. [Note: See parent element for an example. end note]

Parent Elements

scenarios (§18.3.1.76)

Child Elements

Subclause

inputCells (Input Cells)

§18.3.1.52

Attributes

Description

comment (Scenario Comment)

Comment for this scenario, rich text not supported.

The possible values for this attribute are defined by the ST_Xstring simple type (§22.9.2.19).

count (Changing Cell Count)

Number of input cells.

The possible values for this attribute are defined by the W3C XML Schema unsignedInt datatype.

hidden (Hidden Scenario)

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.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

locked (Scenario 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.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

name (Scenario Name)

Scenario's name (user input). Shall be unique for the workbook.

The possible values for this attribute are defined by the ST_Xstring simple type (§22.9.2.19).

user (User Name)

Name of user who last changed the scenario.

The possible values for this attribute are defined by the ST_Xstring simple type (§22.9.2.19).

[Note: The W3C XML Schema definition of this element's content model (CT_Scenario) is located in §A.2. end note]

© ISO/IEC29500: 2008. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Siehe auch

Referenz

Scenario-Member

DocumentFormat.OpenXml.Spreadsheet-Namespace