# C1.Win.C1Editor.C1Editor.GetActiveXInstance

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Editor_C1Editor_GetActiveXInstance_" data-uid="C1.Win.C1Editor.C1Editor.GetActiveXInstance*">GetActiveXInstance Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Editor_C1Editor_GetActiveXInstance_" data-uid="C1.Win.C1Editor.C1Editor.GetActiveXInstance*"></a>
<h4 id="C1_Win_C1Editor_C1Editor_GetActiveXInstance" data-uid="C1.Win.C1Editor.C1Editor.GetActiveXInstance">GetActiveXInstance()</h4>
<div class="markdown level1 summary"><p>Gets the underlying ActiveX WebBrowser control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public object GetActiveXInstance()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetActiveXInstance() As Object</code></pre>
</div>
<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.object">object</a></td>
      <td><p>Reference to the ActiveX WebBrowser object.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Editor_C1Editor_GetActiveXInstance_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Use this method to get a reference to the IWebBrowser2 interface.
For example, <b>C1SpellChecker</b> uses the IWebBrowser2 interface
to support spelling in the C1Editor.</p>
</div>
<h5 id="C1_Win_C1Editor_C1Editor_GetActiveXInstance_examples">Examples</h5>
<p>Code below shows how to activate spell checking
using C1SpellChecker and the <b>GetActiveXInstance</b> method.
<pre><code class="lang-csharp">spellChecker.SetActiveSpellChecking(editor, editor.GetActiveXInstance(), true);</code></pre>

</div>
