# GrapeCity.Documents.Word.Fields.OutlineLevelRange.Set

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_Fields_OutlineLevelRange_Set_" data-uid="GrapeCity.Documents.Word.Fields.OutlineLevelRange.Set*">Set Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_Fields_OutlineLevelRange_Set_" data-uid="GrapeCity.Documents.Word.Fields.OutlineLevelRange.Set*"></a>
<h4 id="GrapeCity_Documents_Word_Fields_OutlineLevelRange_Set_GrapeCity_Documents_Word_OutlineLevel_GrapeCity_Documents_Word_OutlineLevel_" data-uid="GrapeCity.Documents.Word.Fields.OutlineLevelRange.Set(GrapeCity.Documents.Word.OutlineLevel,GrapeCity.Documents.Word.OutlineLevel)">Set(OutlineLevel, OutlineLevel)</h4>
<div class="markdown level1 summary"><p>Sets the level range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Set(OutlineLevel from, OutlineLevel to)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub [Set](from As OutlineLevel, [to] As OutlineLevel)</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.Word.OutlineLevel.html">OutlineLevel</a></td>
      <td><span class="parametername">from</span></td>
      <td><p>The range start outline level.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.OutlineLevel.html">OutlineLevel</a></td>
      <td><span class="parametername">to</span></td>
      <td><p>The range end outline level.</p>
</td>
    </tr>
  </tbody>
</table>
<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.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>Thrown if trying to set <a class="xref" href="GrapeCity.Documents.Word.OutlineLevel.html#GrapeCity_Documents_Word_OutlineLevel_BodyText">BodyText</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>Thrown if trying to set <code class="paramref">from</code> less than <code class="paramref">to</code>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
