# C1.Util.DX.DirectWrite.FontCollectionLoader.CreateEnumeratorFromKey

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DirectWrite_FontCollectionLoader_CreateEnumeratorFromKey_" data-uid="C1.Util.DX.DirectWrite.FontCollectionLoader.CreateEnumeratorFromKey*">CreateEnumeratorFromKey Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DirectWrite_FontCollectionLoader_CreateEnumeratorFromKey_" data-uid="C1.Util.DX.DirectWrite.FontCollectionLoader.CreateEnumeratorFromKey*"></a>
<h4 id="C1_Util_DX_DirectWrite_FontCollectionLoader_CreateEnumeratorFromKey_C1_Util_DX_DirectWrite_Factory_C1_Util_DX_DataPointer_" data-uid="C1.Util.DX.DirectWrite.FontCollectionLoader.CreateEnumeratorFromKey(C1.Util.DX.DirectWrite.Factory,C1.Util.DX.DataPointer)">CreateEnumeratorFromKey(Factory, DataPointer)</h4>
<div class="markdown level1 summary"><p>Creates a font file enumerator object that encapsulates a collection of font files. The font system calls back to this interface to create a font collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">FontFileEnumerator CreateEnumeratorFromKey(Factory factory, DataPointer collectionKey)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function CreateEnumeratorFromKey(factory As Factory, collectionKey As DataPointer) As FontFileEnumerator</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.Factory.html">Factory</a></td>
      <td><span class="parametername">factory</span></td>
      <td><p>Pointer to the <a class="xref" href="C1.Util.DX.DirectWrite.Factory.html">Factory</a> object that was used to create the current font collection.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DataPointer.html">DataPointer</a></td>
      <td><span class="parametername">collectionKey</span></td>
      <td><p>A font collection key that uniquely identifies the collection of font files within the scope of the font collection loader being used. The buffer allocated for this key must be at least  the size, in bytes, specified by collectionKeySize.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DirectWrite.FontFileEnumerator.html">FontFileEnumerator</a></td>
      <td><p>a reference to the newly created font file enumerator.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
