# GrapeCity.Documents.Excel.IScenarios

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Excel_IScenarios" data-uid="GrapeCity.Documents.Excel.IScenarios" class="text-break">IScenarios Interface
</h1>
  <div class="markdown level0 summary"><p>Represents the collection of <a class="xref" href="GrapeCity.Documents.Excel.IScenario.html">IScenario</a> objects in the worksheet.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Excel.html">GrapeCity.Documents.Excel</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Excel.dll</h6>
  <h5 id="GrapeCity_Documents_Excel_IScenarios_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IScenarios : IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface IScenarios
    Inherits IEnumerable</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Excel_IScenarios_Count" data-uid="GrapeCity.Documents.Excel.IScenarios.Count">
          <a class="xref" href="GrapeCity.Documents.Excel.IScenarios.Count.html#GrapeCity_Documents_Excel_IScenarios_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the number of objects in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IScenarios_Item_System_Int32_" data-uid="GrapeCity.Documents.Excel.IScenarios.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Excel.IScenarios.Item.html#GrapeCity_Documents_Excel_IScenarios_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the scenario using the index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IScenarios_Item_System_String_" data-uid="GrapeCity.Documents.Excel.IScenarios.Item(System.String)">
          <a class="xref" href="GrapeCity.Documents.Excel.IScenarios.Item.html#GrapeCity_Documents_Excel_IScenarios_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the scenario using the name.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Excel_IScenarios_Add_System_String_GrapeCity_Documents_Excel_IRange_System_Collections_Generic_List_System_Object__System_String_System_Boolean_System_Boolean_" data-uid="GrapeCity.Documents.Excel.IScenarios.Add(System.String,GrapeCity.Documents.Excel.IRange,System.Collections.Generic.List{System.Object},System.String,System.Boolean,System.Boolean)">
          <a class="xref" href="GrapeCity.Documents.Excel.IScenarios.Add.html#GrapeCity_Documents_Excel_IScenarios_Add_System_String_GrapeCity_Documents_Excel_IRange_System_Collections_Generic_List_System_Object__System_String_System_Boolean_System_Boolean_">Add(string, IRange, List&lt;object&gt;, string, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new scenario and adds it to the list of scenarios in the current worksheet.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
