# GrapeCity.Documents.Word.Templates.DataSourceDictionary

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_Templates_DataSourceDictionary" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary" class="text-break">DataSourceDictionary Class
</h1>
  <div class="markdown level0 summary"><p>Represents a dictionary of data sources.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">DataSourceDictionary</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2">IDictionary</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2">KeyValuePair</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2">KeyValuePair</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2">KeyValuePair</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2">KeyValuePair</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Word.Templates.html">GrapeCity.Documents.Word.Templates</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_Templates_DataSourceDictionary_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DataSourceDictionary : IDictionary&lt;string, object&gt;, ICollection&lt;KeyValuePair&lt;string, object&gt;&gt;, IEnumerable&lt;KeyValuePair&lt;string, object&gt;&gt;, ICollection&lt;KeyValuePair&lt;string, object&gt;&gt;, IEnumerable&lt;KeyValuePair&lt;string, object&gt;&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DataSourceDictionary
    Implements IDictionary(Of String, Object), ICollection(Of KeyValuePair(Of String, Object)), IEnumerable(Of KeyValuePair(Of String, Object)), ICollection(Of KeyValuePair(Of String, Object)), IEnumerable(Of KeyValuePair(Of String, Object)), IEnumerable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_DataSourceDictionary__ctor_System_Boolean_" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary.#ctor(System.Boolean)">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.-ctor.html#GrapeCity_Documents_Word_Templates_DataSourceDictionary__ctor_System_Boolean_">DataSourceDictionary(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.html">DataSourceDictionary</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_Word_Templates_DataSourceDictionary_Count" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Count">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Count.html#GrapeCity_Documents_Word_Templates_DataSourceDictionary_Count">Count</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_DataSourceDictionary_IsReadOnly" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary.IsReadOnly">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.IsReadOnly.html#GrapeCity_Documents_Word_Templates_DataSourceDictionary_IsReadOnly">IsReadOnly</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_DataSourceDictionary_Item_System_String_" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Item(System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Item.html#GrapeCity_Documents_Word_Templates_DataSourceDictionary_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_DataSourceDictionary_Keys" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Keys">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Keys.html#GrapeCity_Documents_Word_Templates_DataSourceDictionary_Keys">Keys</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_DataSourceDictionary_Values" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Values">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Values.html#GrapeCity_Documents_Word_Templates_DataSourceDictionary_Values">Values</a>
        </td>
        <td class="markdown level1 summary"></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_Word_Templates_DataSourceDictionary_Add_System_Collections_Generic_KeyValuePair_System_String_System_Object__" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Add(System.Collections.Generic.KeyValuePair{System.String,System.Object})">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Add.html#GrapeCity_Documents_Word_Templates_DataSourceDictionary_Add_System_Collections_Generic_KeyValuePair_System_String_System_Object__">Add(KeyValuePair&lt;string, object&gt;)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_DataSourceDictionary_Add_System_String_System_Object_" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Add(System.String,System.Object)">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Add.html#GrapeCity_Documents_Word_Templates_DataSourceDictionary_Add_System_String_System_Object_">Add(string, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a data source to this <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.html">DataSourceDictionary</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_DataSourceDictionary_Add_System_String_System_Object_System_Globalization_CultureInfo_" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Add(System.String,System.Object,System.Globalization.CultureInfo)">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Add.html#GrapeCity_Documents_Word_Templates_DataSourceDictionary_Add_System_String_System_Object_System_Globalization_CultureInfo_">Add(string, object, CultureInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a data source to this <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.html">DataSourceDictionary</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_DataSourceDictionary_Clear" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Clear">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Clear.html#GrapeCity_Documents_Word_Templates_DataSourceDictionary_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_DataSourceDictionary_Contains_System_Collections_Generic_KeyValuePair_System_String_System_Object__" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Contains(System.Collections.Generic.KeyValuePair{System.String,System.Object})">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Contains.html#GrapeCity_Documents_Word_Templates_DataSourceDictionary_Contains_System_Collections_Generic_KeyValuePair_System_String_System_Object__">Contains(KeyValuePair&lt;string, object&gt;)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_DataSourceDictionary_ContainsKey_System_String_" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary.ContainsKey(System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.ContainsKey.html#GrapeCity_Documents_Word_Templates_DataSourceDictionary_ContainsKey_System_String_">ContainsKey(string)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_DataSourceDictionary_CopyTo_System_Collections_Generic_KeyValuePair_System_String_System_Object____System_Int32_" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary.CopyTo(System.Collections.Generic.KeyValuePair{System.String,System.Object}[],System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.CopyTo.html#GrapeCity_Documents_Word_Templates_DataSourceDictionary_CopyTo_System_Collections_Generic_KeyValuePair_System_String_System_Object____System_Int32_">CopyTo(KeyValuePair&lt;string, object&gt;[], int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_DataSourceDictionary_GetEnumerator" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary.GetEnumerator">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.GetEnumerator.html#GrapeCity_Documents_Word_Templates_DataSourceDictionary_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_DataSourceDictionary_Remove_System_Collections_Generic_KeyValuePair_System_String_System_Object__" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Remove(System.Collections.Generic.KeyValuePair{System.String,System.Object})">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Remove.html#GrapeCity_Documents_Word_Templates_DataSourceDictionary_Remove_System_Collections_Generic_KeyValuePair_System_String_System_Object__">Remove(KeyValuePair&lt;string, object&gt;)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_DataSourceDictionary_Remove_System_String_" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Remove(System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.Remove.html#GrapeCity_Documents_Word_Templates_DataSourceDictionary_Remove_System_String_">Remove(string)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_DataSourceDictionary_TryGetValue_System_String_System_Object__" data-uid="GrapeCity.Documents.Word.Templates.DataSourceDictionary.TryGetValue(System.String,System.Object@)">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.DataSourceDictionary.TryGetValue.html#GrapeCity_Documents_Word_Templates_DataSourceDictionary_TryGetValue_System_String_System_Object__">TryGetValue(string, out object)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
