# GrapeCity.Documents.Pdf.Annotations.Model3DViewCollection.IndexByName

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Pdf_Annotations_Model3DViewCollection_IndexByName_" data-uid="GrapeCity.Documents.Pdf.Annotations.Model3DViewCollection.IndexByName*">IndexByName Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Pdf_Annotations_Model3DViewCollection_IndexByName_" data-uid="GrapeCity.Documents.Pdf.Annotations.Model3DViewCollection.IndexByName*"></a>
<h4 id="GrapeCity_Documents_Pdf_Annotations_Model3DViewCollection_IndexByName_System_String_" data-uid="GrapeCity.Documents.Pdf.Annotations.Model3DViewCollection.IndexByName(System.String)">IndexByName(string)</h4>
<div class="markdown level1 summary"><p>Returns the zero-based index of the first <a class="xref" href="GrapeCity.Documents.Pdf.Annotations.Model3DView.html">Model3DView</a> in this collection
whose <a class="xref" href="GrapeCity.Documents.Pdf.Annotations.Model3DView.Name.html#GrapeCity_Documents_Pdf_Annotations_Model3DView_Name">Name</a> equals the specified <code class="paramref">name</code>,
if <a class="xref" href="GrapeCity.Documents.Pdf.Annotations.Model3DView.Name.html#GrapeCity_Documents_Pdf_Annotations_Model3DView_Name">Name</a> is empty then <a class="xref" href="GrapeCity.Documents.Pdf.Annotations.Model3DView.UIName.html#GrapeCity_Documents_Pdf_Annotations_Model3DView_UIName">UIName</a> is used.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int IndexByName(string name)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function IndexByName(name As String) As Integer</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">name</span></td>
      <td><p>The name of the view to locate.</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>The zero-based index of the first occurrence of a view with the specified name if found;
otherwise, -1.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Documents_Pdf_Annotations_Model3DViewCollection_IndexByName_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Comparison is ordinal and case-sensitive. If <code class="paramref">name</code> is <code>null</code> or empty,
the method returns -1.</p>
</div>
</div>
