# C1.Framework.ScrollBarPanel

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_ScrollBarPanel" data-uid="C1.Framework.ScrollBarPanel" class="text-break">ScrollBarPanel Class
</h1>
  <div class="markdown level0 summary"><p>Panel that plays the role of a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.scrollablecontrol">ScrollableControl</a>).</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">ScrollBarPanel</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_ScrollBarPanel_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ScrollBarPanel : BasePanel, ISupportUia</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ScrollBarPanel
    Inherits BasePanel
    Implements ISupportUia</code></pre>
  </div>
  <h5 id="C1_Framework_ScrollBarPanel_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This element contains a <a class="xref" href="C1.Framework.ScrollBarPanel.ScrollablePanel.html#C1_Framework_ScrollBarPanel_ScrollablePanel">ScrollablePanel</a> that contains the 
content to display and two <a class="xref" href="C1.Framework.ScrollBarElement.html">ScrollBarElement</a> objects that are displayed
as needed and control the scroll position on the main panel.</p>
<p>If the panel contains an <a class="xref" href="C1.Framework.Element.html">Element</a> that is <a class="xref" href="C1.Framework.Element.HitTestable.html#C1_Framework_Element_HitTestable">HitTestable</a>,
then it will honor the mouse wheel in addition to the scrollbars.</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_ScrollBarPanel__ctor" data-uid="C1.Framework.ScrollBarPanel.#ctor">
          <a class="xref" href="C1.Framework.ScrollBarPanel.-ctor.html#C1_Framework_ScrollBarPanel__ctor">ScrollBarPanel()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Framework.ScrollBarPanel.html">ScrollBarPanel</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ScrollBarPanel__ctor_C1_Framework_Style_" data-uid="C1.Framework.ScrollBarPanel.#ctor(C1.Framework.Style)">
          <a class="xref" href="C1.Framework.ScrollBarPanel.-ctor.html#C1_Framework_ScrollBarPanel__ctor_C1_Framework_Style_">ScrollBarPanel(Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Framework.ScrollBarPanel.html">ScrollBarPanel</a>.</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_ScrollBarPanel_ButtonSize" data-uid="C1.Framework.ScrollBarPanel.ButtonSize">
          <a class="xref" href="C1.Framework.ScrollBarPanel.ButtonSize.html#C1_Framework_ScrollBarPanel_ButtonSize">ButtonSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the size of the scrollbar buttons.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ScrollBarPanel_ContentElement" data-uid="C1.Framework.ScrollBarPanel.ContentElement">
          <a class="xref" href="C1.Framework.ScrollBarPanel.ContentElement.html#C1_Framework_ScrollBarPanel_ContentElement">ContentElement</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Framework.Element.html">Element</a> which displays the scrollable content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ScrollBarPanel_ForceScrollBars" data-uid="C1.Framework.ScrollBarPanel.ForceScrollBars">
          <a class="xref" href="C1.Framework.ScrollBarPanel.ForceScrollBars.html#C1_Framework_ScrollBarPanel_ForceScrollBars">ForceScrollBars</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the scrollbars defined by the <a class="xref" href="C1.Framework.ScrollBarPanel.ScrollBars.html#C1_Framework_ScrollBarPanel_ScrollBars">ScrollBars</a>
property should remain visible even if they are not needed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ScrollBarPanel_ScrollBarHorizontal" data-uid="C1.Framework.ScrollBarPanel.ScrollBarHorizontal">
          <a class="xref" href="C1.Framework.ScrollBarPanel.ScrollBarHorizontal.html#C1_Framework_ScrollBarPanel_ScrollBarHorizontal">ScrollBarHorizontal</a>
        </td>
        <td class="markdown level1 summary"><p>Returns reference to the horizontal <a class="xref" href="C1.Framework.ScrollBarElement.html">ScrollBarElement</a> element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ScrollBarPanel_ScrollBarVertical" data-uid="C1.Framework.ScrollBarPanel.ScrollBarVertical">
          <a class="xref" href="C1.Framework.ScrollBarPanel.ScrollBarVertical.html#C1_Framework_ScrollBarPanel_ScrollBarVertical">ScrollBarVertical</a>
        </td>
        <td class="markdown level1 summary"><p>Returns reference to the vertical <a class="xref" href="C1.Framework.ScrollBarElement.html">ScrollBarElement</a> element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ScrollBarPanel_ScrollBars" data-uid="C1.Framework.ScrollBarPanel.ScrollBars">
          <a class="xref" href="C1.Framework.ScrollBarPanel.ScrollBars.html#C1_Framework_ScrollBarPanel_ScrollBars">ScrollBars</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets which scrollbars should be visible.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ScrollBarPanel_ScrollablePanel" data-uid="C1.Framework.ScrollBarPanel.ScrollablePanel">
          <a class="xref" href="C1.Framework.ScrollBarPanel.ScrollablePanel.html#C1_Framework_ScrollBarPanel_ScrollablePanel">ScrollablePanel</a>
        </td>
        <td class="markdown level1 summary"><p>Returns reference to the child <a class="xref" href="C1.Framework.ScrollBarPanel.ScrollablePanel.html#C1_Framework_ScrollBarPanel_ScrollablePanel">ScrollablePanel</a> element.</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_ScrollBarPanel_Clone" data-uid="C1.Framework.ScrollBarPanel.Clone">
          <a class="xref" href="C1.Framework.ScrollBarPanel.Clone.html#C1_Framework_ScrollBarPanel_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a clone of this element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ScrollBarPanel_Layout_System_Drawing_Graphics_" data-uid="C1.Framework.ScrollBarPanel.Layout(System.Drawing.Graphics)">
          <a class="xref" href="C1.Framework.ScrollBarPanel.Layout.html#C1_Framework_ScrollBarPanel_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_ScrollBarPanel_OnScrollPositionChanged_System_EventArgs_" data-uid="C1.Framework.ScrollBarPanel.OnScrollPositionChanged(System.EventArgs)">
          <a class="xref" href="C1.Framework.ScrollBarPanel.OnScrollPositionChanged.html#C1_Framework_ScrollBarPanel_OnScrollPositionChanged_System_EventArgs_">OnScrollPositionChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Framework.ScrollBarPanel.ScrollPositionChanged.html">ScrollPositionChanged</a> event.</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_ScrollBarPanel_ScrollPositionChanged" data-uid="C1.Framework.ScrollBarPanel.ScrollPositionChanged">
          <a class="xref" href="C1.Framework.ScrollBarPanel.ScrollPositionChanged.html">ScrollPositionChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when <a class="xref" href="C1.Framework.ScrollBarPanel.ScrollablePanel.html#C1_Framework_ScrollBarPanel_ScrollablePanel">ScrollablePanel</a>'s scroll position property changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
