# C1.C1Preview.Dictionary

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_Dictionary" data-uid="C1.C1Preview.Dictionary" class="text-break">Dictionary Class
</h1>
  <div class="markdown level0 summary"><p>Represents a dictionary within a <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a>.
The dictionary allows to store an object such as an image or an icon once,
and reuse it throughout the document.
Items contained in the dictionary must have types derived from <a class="xref" href="C1.C1Preview.DictionaryItem.html">DictionaryItem</a>
(e.g. <a class="xref" href="C1.C1Preview.DictionaryImage.html">DictionaryImage</a> or <a class="xref" href="C1.C1Preview.DictionaryIcon.html">DictionaryIcon</a>).</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"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.collectionbase">CollectionBase</a></div>
    <div class="level2"><a class="xref" href="C1.C1Preview.OwnedCollectionBase.html">OwnedCollectionBase</a></div>
    <div class="level3"><a class="xref" href="C1.C1Preview.OwnedCollection.html">OwnedCollection</a></div>
    <div class="level4"><a class="xref" href="C1.C1Preview.NamedCollection.html">NamedCollection</a></div>
    <div class="level5"><span class="xref">Dictionary</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></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="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.PrintDocument.10.dll</h6>
  <h5 id="C1_C1Preview_Dictionary_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Dictionary : NamedCollection, IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class Dictionary
    Inherits NamedCollection
    Implements IList, ICollection, 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="C1_C1Preview_Dictionary_Document" data-uid="C1.C1Preview.Dictionary.Document">
          <a class="xref" href="C1.C1Preview.Dictionary.Document.html#C1_C1Preview_Dictionary_Document">Document</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a> object that is the owner of the current dictionary.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Dictionary_Item_System_Int32_" data-uid="C1.C1Preview.Dictionary.Item(System.Int32)">
          <a class="xref" href="C1.C1Preview.Dictionary.Item.html#C1_C1Preview_Dictionary_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.C1Preview.DictionaryItem.html">DictionaryItem</a> at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Dictionary_Item_System_String_" data-uid="C1.C1Preview.Dictionary.Item(System.String)">
          <a class="xref" href="C1.C1Preview.Dictionary.Item.html#C1_C1Preview_Dictionary_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.DictionaryItem.html">DictionaryItem</a> with the specified 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="C1_C1Preview_Dictionary_Add_C1_C1Preview_DictionaryItem_" data-uid="C1.C1Preview.Dictionary.Add(C1.C1Preview.DictionaryItem)">
          <a class="xref" href="C1.C1Preview.Dictionary.Add.html#C1_C1Preview_Dictionary_Add_C1_C1Preview_DictionaryItem_">Add(DictionaryItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds an item to the current dictionary.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Dictionary_GetItemType" data-uid="C1.C1Preview.Dictionary.GetItemType">
          <a class="xref" href="C1.C1Preview.Dictionary.GetItemType.html#C1_C1Preview_Dictionary_GetItemType">GetItemType()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the type of items that can be added to this dictionary.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Dictionary_Remove_C1_C1Preview_DictionaryItem_" data-uid="C1.C1Preview.Dictionary.Remove(C1.C1Preview.DictionaryItem)">
          <a class="xref" href="C1.C1Preview.Dictionary.Remove.html#C1_C1Preview_Dictionary_Remove_C1_C1Preview_DictionaryItem_">Remove(DictionaryItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes an item from the current dictionary.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
