# C1.Framework.HostedElement

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_HostedElement" data-uid="C1.Framework.HostedElement" class="text-break">HostedElement Class
</h1>
  <div class="markdown level0 summary"><p>Element that serves as an interface between the host IXView control and the content elements.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Framework.Element.html">Element</a></div>
    <div class="level2"><a class="xref" href="C1.Framework.BasePanel.html">BasePanel</a></div>
    <div class="level3"><span class="xref">HostedElement</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Win.Accessibility.ISupportUia.html">ISupportUia</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isite">ISite</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iserviceprovider">IServiceProvider</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.html">C1.Framework</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Framework_HostedElement_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class HostedElement : BasePanel, ISupportUia, ISite, IServiceProvider</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class HostedElement
    Inherits BasePanel
    Implements ISupportUia, ISite, IServiceProvider</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_HostedElement__ctor_System_Windows_Forms_Control_" data-uid="C1.Framework.HostedElement.#ctor(System.Windows.Forms.Control)">
          <a class="xref" href="C1.Framework.HostedElement.-ctor.html#C1_Framework_HostedElement__ctor_System_Windows_Forms_Control_">HostedElement(Control)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.HostedElement.html">HostedElement</a> control.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_HostedElement_Element" data-uid="C1.Framework.HostedElement.Element">
          <a class="xref" href="C1.Framework.HostedElement.Element.html#C1_Framework_HostedElement_Element">Element</a>
        </td>
        <td class="markdown level1 summary"><p>Element hosted by this <a class="xref" href="C1.Framework.HostedElement.html">HostedElement</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_HostedElement_RescaleForDpi_System_Int32_System_Int32_" data-uid="C1.Framework.HostedElement.RescaleForDpi(System.Int32,System.Int32)">
          <a class="xref" href="C1.Framework.HostedElement.RescaleForDpi.html#C1_Framework_HostedElement_RescaleForDpi_System_Int32_System_Int32_">RescaleForDpi(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Calls methods to rescale of the element tree when a DPI change occurs.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
