# GrapeCity.Documents.Word.DropDownItemCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_DropDownItemCollection" data-uid="GrapeCity.Documents.Word.DropDownItemCollection" class="text-break">DropDownItemCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a list of <a class="xref" href="GrapeCity.Documents.Word.DropDownItem.html">DropDownItem</a> objects.</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.generic.list-1">List</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.DropDownItem.html">DropDownItem</a>&gt;</div>
    <div class="level2"><span class="xref">DropDownItemCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.DropDownItem.html">DropDownItem</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="GrapeCity.Documents.Word.DropDownItem.html">DropDownItem</a>&gt;</div>
    <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.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.DropDownItem.html">DropDownItem</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.DropDownItem.html">DropDownItem</a>&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="GrapeCity.Documents.Word.DropDownItem.html">DropDownItem</a>&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.html">GrapeCity.Documents.Word</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_DropDownItemCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DropDownItemCollection : List&lt;DropDownItem&gt;, IList&lt;DropDownItem&gt;, ICollection&lt;DropDownItem&gt;, IList, ICollection, IReadOnlyList&lt;DropDownItem&gt;, IReadOnlyCollection&lt;DropDownItem&gt;, IEnumerable&lt;DropDownItem&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DropDownItemCollection
    Inherits List(Of DropDownItem)
    Implements IList(Of DropDownItem), ICollection(Of DropDownItem), IList, ICollection, IReadOnlyList(Of DropDownItem), IReadOnlyCollection(Of DropDownItem), IEnumerable(Of DropDownItem), 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_Word_DropDownItemCollection_SelectedValue" data-uid="GrapeCity.Documents.Word.DropDownItemCollection.SelectedValue">
          <a class="xref" href="GrapeCity.Documents.Word.DropDownItemCollection.SelectedValue.html#GrapeCity_Documents_Word_DropDownItemCollection_SelectedValue">SelectedValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value associated with the current display text for the content control.
If this content control is not mapped to XML using the <a class="xref" href="GrapeCity.Documents.Word.ContentControl.XmlMapping.html#GrapeCity_Documents_Word_ContentControl_XmlMapping">XmlMapping</a> property, then this property shall be ignored.
If this content control is mapped to XML, it shall be used to determine whether the current display text in the content control shall be retained when the document is opened, as follows:
When the XML mapping is created, the content in the custom XML data is retrieved.
If this content has an associated list item (matching its value property), then the corresponding display text shall be displayed in the content control.
If no list item exists, this content shall be matched against this property value.
If the values match, the current display text shall be retained.
If the values do not match, the current custom XML data content shall be the new display text (since no match exists in the list items).</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_Word_DropDownItemCollection_Equals_System_Object_" data-uid="GrapeCity.Documents.Word.DropDownItemCollection.Equals(System.Object)">
          <a class="xref" href="GrapeCity.Documents.Word.DropDownItemCollection.Equals.html#GrapeCity_Documents_Word_DropDownItemCollection_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified object is equal to the current object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_DropDownItemCollection_GetHashCode" data-uid="GrapeCity.Documents.Word.DropDownItemCollection.GetHashCode">
          <a class="xref" href="GrapeCity.Documents.Word.DropDownItemCollection.GetHashCode.html#GrapeCity_Documents_Word_DropDownItemCollection_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Serves as the default hash function.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
