# C1.Framework.ScrollablePanel

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_ScrollablePanel" data-uid="C1.Framework.ScrollablePanel" class="text-break">ScrollablePanel Class
</h1>
  <div class="markdown level0 summary"><p>Panel that knows how to scroll child elements bigger than itself.</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">ScrollablePanel</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Win.Accessibility.ISupportUia.html">ISupportUia</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_ScrollablePanel_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ScrollablePanel : BasePanel, ISupportUia</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ScrollablePanel
    Inherits BasePanel
    Implements ISupportUia</code></pre>
  </div>
  <h5 id="C1_Framework_ScrollablePanel_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>The child elements are clipped to the bounds of the <b>ScrollablePanel</b>; 
scrolling is done by setting the <a class="xref" href="C1.Framework.ScrollablePanel.ScrollPosition.html#C1_Framework_ScrollablePanel_ScrollPosition">ScrollPosition</a> property, 
which works like the <b>ScrollPosition</b> in the <a class="xref" href="C1.Framework.XView.html">XView</a> control.</p>
<p>This class only implements the scrollable (client) area of a scrollable
control. It doesn't have scrollbars or buttons. For that, use the 
<a class="xref" href="C1.Framework.ScrollBarPanel.html">ScrollBarPanel</a> or <a class="xref" href="C1.Framework.ScrollableStackPanel.html">ScrollableStackPanel</a> classes
(or implement your own scrollable panel).</p>
</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_ScrollablePanel__ctor" data-uid="C1.Framework.ScrollablePanel.#ctor">
          <a class="xref" href="C1.Framework.ScrollablePanel.-ctor.html#C1_Framework_ScrollablePanel__ctor">ScrollablePanel()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.ScrollablePanel.html">ScrollablePanel</a> element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ScrollablePanel__ctor_C1_Framework_Style_" data-uid="C1.Framework.ScrollablePanel.#ctor(C1.Framework.Style)">
          <a class="xref" href="C1.Framework.ScrollablePanel.-ctor.html#C1_Framework_ScrollablePanel__ctor_C1_Framework_Style_">ScrollablePanel(Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.ScrollablePanel.html">ScrollablePanel</a> element with the pecified style options.</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_ScrollablePanel_ContentElement" data-uid="C1.Framework.ScrollablePanel.ContentElement">
          <a class="xref" href="C1.Framework.ScrollablePanel.ContentElement.html#C1_Framework_ScrollablePanel_ContentElement">ContentElement</a>
        </td>
        <td class="markdown level1 summary"><p><a class="xref" href="C1.Framework.Element.html">Element</a> that contains the content to be scrolled.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ScrollablePanel_ScrollPosition" data-uid="C1.Framework.ScrollablePanel.ScrollPosition">
          <a class="xref" href="C1.Framework.ScrollablePanel.ScrollPosition.html#C1_Framework_ScrollablePanel_ScrollPosition">ScrollPosition</a>
        </td>
        <td class="markdown level1 summary"><p>Negative pixel offset (like the <a class="xref" href="C1.Framework.XView.html">XView</a> control).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ScrollablePanel_SmoothScrolling" data-uid="C1.Framework.ScrollablePanel.SmoothScrolling">
          <a class="xref" href="C1.Framework.ScrollablePanel.SmoothScrolling.html#C1_Framework_ScrollablePanel_SmoothScrolling">SmoothScrolling</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the scrolling should be performed in steps.</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_ScrollablePanel_Layout_System_Drawing_Graphics_" data-uid="C1.Framework.ScrollablePanel.Layout(System.Drawing.Graphics)">
          <a class="xref" href="C1.Framework.ScrollablePanel.Layout.html#C1_Framework_ScrollablePanel_Layout_System_Drawing_Graphics_">Layout(Graphics)</a>
        </td>
        <td class="markdown level1 summary"><p>Layout this element based on its style and contents.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ScrollablePanel_OnMouseWheel_System_Windows_Forms_MouseEventArgs_" data-uid="C1.Framework.ScrollablePanel.OnMouseWheel(System.Windows.Forms.MouseEventArgs)">
          <a class="xref" href="C1.Framework.ScrollablePanel.OnMouseWheel.html#C1_Framework_ScrollablePanel_OnMouseWheel_System_Windows_Forms_MouseEventArgs_">OnMouseWheel(MouseEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Handles MouseWheel events.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ScrollablePanel_OnScrollPositionChanged_System_EventArgs_" data-uid="C1.Framework.ScrollablePanel.OnScrollPositionChanged(System.EventArgs)">
          <a class="xref" href="C1.Framework.ScrollablePanel.OnScrollPositionChanged.html#C1_Framework_ScrollablePanel_OnScrollPositionChanged_System_EventArgs_">OnScrollPositionChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Framework.ScrollablePanel.ScrollPositionChanged.html">ScrollPositionChanged</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ScrollablePanel_Render_System_Drawing_Graphics_System_Drawing_Rectangle_" data-uid="C1.Framework.ScrollablePanel.Render(System.Drawing.Graphics,System.Drawing.Rectangle)">
          <a class="xref" href="C1.Framework.ScrollablePanel.Render.html#C1_Framework_ScrollablePanel_Render_System_Drawing_Graphics_System_Drawing_Rectangle_">Render(Graphics, Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Renders the element into a given rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ScrollablePanel_ScrollIntoView_C1_Framework_Element_" data-uid="C1.Framework.ScrollablePanel.ScrollIntoView(C1.Framework.Element)">
          <a class="xref" href="C1.Framework.ScrollablePanel.ScrollIntoView.html#C1_Framework_ScrollablePanel_ScrollIntoView_C1_Framework_Element_">ScrollIntoView(Element)</a>
        </td>
        <td class="markdown level1 summary"><p>Scrolls a given <a class="xref" href="C1.Framework.Element.html">Element</a> into view.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ScrollablePanel_ScrollIntoView_System_Drawing_Rectangle_" data-uid="C1.Framework.ScrollablePanel.ScrollIntoView(System.Drawing.Rectangle)">
          <a class="xref" href="C1.Framework.ScrollablePanel.ScrollIntoView.html#C1_Framework_ScrollablePanel_ScrollIntoView_System_Drawing_Rectangle_">ScrollIntoView(Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Scrolls a given <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> into view.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_ScrollablePanel_ScrollPositionChanged" data-uid="C1.Framework.ScrollablePanel.ScrollPositionChanged">
          <a class="xref" href="C1.Framework.ScrollablePanel.ScrollPositionChanged.html">ScrollPositionChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Event that occurs when the <a class="xref" href="C1.Framework.ScrollablePanel.ScrollPosition.html#C1_Framework_ScrollablePanel_ScrollPosition">ScrollPosition</a> property changes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
