# GrapeCity.Documents.Pdf.Annotations.Model3DAnnotation.SetDefaultView

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Pdf_Annotations_Model3DAnnotation_SetDefaultView_" data-uid="GrapeCity.Documents.Pdf.Annotations.Model3DAnnotation.SetDefaultView*">SetDefaultView Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Pdf_Annotations_Model3DAnnotation_SetDefaultView_" data-uid="GrapeCity.Documents.Pdf.Annotations.Model3DAnnotation.SetDefaultView*"></a>
<h4 id="GrapeCity_Documents_Pdf_Annotations_Model3DAnnotation_SetDefaultView_GrapeCity_Documents_Pdf_Annotations_Model3DView_" data-uid="GrapeCity.Documents.Pdf.Annotations.Model3DAnnotation.SetDefaultView(GrapeCity.Documents.Pdf.Annotations.Model3DView)">SetDefaultView(Model3DView)</h4>
<div class="markdown level1 summary"><p>Sets the default initial <a class="xref" href="GrapeCity.Documents.Pdf.Annotations.Model3DView.html">Model3DView</a> for this annotation.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetDefaultView(Model3DView value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetDefaultView(value As Model3DView)</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="GrapeCity.Documents.Pdf.Annotations.Model3DView.html">Model3DView</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Documents.Pdf.Annotations.Model3DView.html">Model3DView</a> instance to use as the default view.
Pass <code>null</code> to remove any explicit default view from the annotation.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Pdf_Annotations_Model3DAnnotation_SetDefaultView_" data-uid="GrapeCity.Documents.Pdf.Annotations.Model3DAnnotation.SetDefaultView*"></a>
<h4 id="GrapeCity_Documents_Pdf_Annotations_Model3DAnnotation_SetDefaultView_System_Int32_" data-uid="GrapeCity.Documents.Pdf.Annotations.Model3DAnnotation.SetDefaultView(System.Int32)">SetDefaultView(int)</h4>
<div class="markdown level1 summary"><p>Sets the default initial view by specifying the zero-based index of a view
in the associated 3D stream's <a class="xref" href="GrapeCity.Documents.Pdf.Annotations.Model3DStream.Views.html#GrapeCity_Documents_Pdf_Annotations_Model3DStream_Views">Views</a> collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetDefaultView(int value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetDefaultView(value 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.int32">int</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>Zero-based index of the view to use as the default.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Documents_Pdf_Annotations_Model3DAnnotation_SetDefaultView_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The index is stored in the annotation dictionary and resolved when the default view
is requested. The index must correspond to an entry in the stream's view list;
if the referenced stream or view does not exist, resolution will return <code>null</code>.</p>
</div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><p>Thrown when <code class="paramref">value</code> is negative.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
