# GrapeCity.Documents.Text.CffTable.TryGetGID

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Text_CffTable_TryGetGID_" data-uid="GrapeCity.Documents.Text.CffTable.TryGetGID*">TryGetGID Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Text_CffTable_TryGetGID_" data-uid="GrapeCity.Documents.Text.CffTable.TryGetGID*"></a>
<h4 id="GrapeCity_Documents_Text_CffTable_TryGetGID_System_String_System_UInt16__" data-uid="GrapeCity.Documents.Text.CffTable.TryGetGID(System.String,System.UInt16@)">TryGetGID(string, out ushort)</h4>
<div class="markdown level1 summary"><p>Tries to get glyph index (GID) by glyph name.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool TryGetGID(string glyphName, out ushort gid)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function TryGetGID(glyphName As String, ByRef gid As UShort) As Boolean</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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">glyphName</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uint16">ushort</a></td>
      <td><span class="parametername">gid</span></td>
      <td></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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Text_CffTable_TryGetGID_" data-uid="GrapeCity.Documents.Text.CffTable.TryGetGID*"></a>
<h4 id="GrapeCity_Documents_Text_CffTable_TryGetGID_System_UInt16_System_UInt16__" data-uid="GrapeCity.Documents.Text.CffTable.TryGetGID(System.UInt16,System.UInt16@)">TryGetGID(ushort, out ushort)</h4>
<div class="markdown level1 summary"><p>Tries to get glyph index (GID) by glyph name represented by SID.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool TryGetGID(ushort sid, out ushort gid)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function TryGetGID(sid As UShort, ByRef gid As UShort) As Boolean</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="https://learn.microsoft.com/dotnet/api/system.uint16">ushort</a></td>
      <td><span class="parametername">sid</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uint16">ushort</a></td>
      <td><span class="parametername">gid</span></td>
      <td></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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
