# GrapeCity.Documents.Pdf.Annotations.Model3DStream.SetDefaultView

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Pdf_Annotations_Model3DStream_SetDefaultView_" data-uid="GrapeCity.Documents.Pdf.Annotations.Model3DStream.SetDefaultView*">SetDefaultView Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Pdf_Annotations_Model3DStream_SetDefaultView_" data-uid="GrapeCity.Documents.Pdf.Annotations.Model3DStream.SetDefaultView*"></a>
<h4 id="GrapeCity_Documents_Pdf_Annotations_Model3DStream_SetDefaultView_GrapeCity_Documents_Pdf_Annotations_Model3DView_" data-uid="GrapeCity.Documents.Pdf.Annotations.Model3DStream.SetDefaultView(GrapeCity.Documents.Pdf.Annotations.Model3DView)">SetDefaultView(Model3DView)</h4>
<div class="markdown level1 summary"><p>Sets the stream-level default <a class="xref" href="GrapeCity.Documents.Pdf.Annotations.Model3DView.html">Model3DView</a> object.</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 store as the stream's default view.
Pass <code>null</code> to remove any explicit default view from the stream dictionary.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Pdf_Annotations_Model3DStream_SetDefaultView_" data-uid="GrapeCity.Documents.Pdf.Annotations.Model3DStream.SetDefaultView*"></a>
<h4 id="GrapeCity_Documents_Pdf_Annotations_Model3DStream_SetDefaultView_System_Int32_" data-uid="GrapeCity.Documents.Pdf.Annotations.Model3DStream.SetDefaultView(System.Int32)">SetDefaultView(int)</h4>
<div class="markdown level1 summary"><p>Sets the stream-level default view by specifying a zero-based index into the
<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_Model3DStream_SetDefaultView_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The numeric index is stored in the stream dictionary and is resolved when the
default view is requested. If the index does not correspond to an existing view,
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>
