# C1.Framework.BasePanel

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_BasePanel" data-uid="C1.Framework.BasePanel" class="text-break">BasePanel Class
</h1>
  <div class="markdown level0 summary"><p>Base class for all <a class="xref" href="C1.Framework.Element.html">Element</a> object that contain child 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"><span class="xref">BasePanel</span></div>
      <div class="level3"><a class="xref" href="C1.Framework.DockPanel.html">DockPanel</a></div>
      <div class="level3"><a class="xref" href="C1.Framework.FlowPanel.html">FlowPanel</a></div>
      <div class="level3"><a class="xref" href="C1.Framework.GridPanel.html">GridPanel</a></div>
      <div class="level3"><a class="xref" href="C1.Framework.GridRow.html">GridRow</a></div>
      <div class="level3"><a class="xref" href="C1.Framework.HostedElement.html">HostedElement</a></div>
      <div class="level3"><a class="xref" href="C1.Framework.ParagraphElement.html">ParagraphElement</a></div>
      <div class="level3"><a class="xref" href="C1.Framework.ScrollBarPanel.html">ScrollBarPanel</a></div>
      <div class="level3"><a class="xref" href="C1.Framework.ScrollablePanel.html">ScrollablePanel</a></div>
      <div class="level3"><a class="xref" href="C1.Framework.StackPanel.html">StackPanel</a></div>
      <div class="level3"><a class="xref" href="C1.Framework.TreePanel.html">TreePanel</a></div>
      <div class="level3"><a class="xref" href="C1.Framework.TreeRow.html">TreeRow</a></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_BasePanel_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class BasePanel : Element, ISupportUia</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class BasePanel
    Inherits Element
    Implements ISupportUia</code></pre>
  </div>
  <h5 id="C1_Framework_BasePanel_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This class extends <a class="xref" href="C1.Framework.Element.html">Element</a> and implements the <a class="xref" href="C1.Framework.BasePanel.Children.html#C1_Framework_BasePanel_Children">Children</a> property.</p>
<p>This class acts like a static canvas. It has no layout logic other than sizing itself to fit its children.</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_BasePanel__ctor" data-uid="C1.Framework.BasePanel.#ctor">
          <a class="xref" href="C1.Framework.BasePanel.-ctor.html#C1_Framework_BasePanel__ctor">BasePanel()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Framework.BasePanel.html">BasePanel</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_BasePanel__ctor_C1_Framework_Style_" data-uid="C1.Framework.BasePanel.#ctor(C1.Framework.Style)">
          <a class="xref" href="C1.Framework.BasePanel.-ctor.html#C1_Framework_BasePanel__ctor_C1_Framework_Style_">BasePanel(Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Framework.BasePanel.html">BasePanel</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_BasePanel__children" data-uid="C1.Framework.BasePanel._children">
          <a class="xref" href="C1.Framework.BasePanel._children.html">_children</a>
        </td>
        <td class="markdown level1 summary"></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_BasePanel_Children" data-uid="C1.Framework.BasePanel.Children">
          <a class="xref" href="C1.Framework.BasePanel.Children.html#C1_Framework_BasePanel_Children">Children</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the list of child elements contained in this <a class="xref" href="C1.Framework.Element.html">Element</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_BasePanel_AlignChildren_System_Drawing_Graphics_" data-uid="C1.Framework.BasePanel.AlignChildren(System.Drawing.Graphics)">
          <a class="xref" href="C1.Framework.BasePanel.AlignChildren.html#C1_Framework_BasePanel_AlignChildren_System_Drawing_Graphics_">AlignChildren(Graphics)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_BasePanel_AlignHorizontally_System_Drawing_Rectangle_C1_Framework_Alignment_System_Int32_System_Int32_" data-uid="C1.Framework.BasePanel.AlignHorizontally(System.Drawing.Rectangle,C1.Framework.Alignment,System.Int32,System.Int32)">
          <a class="xref" href="C1.Framework.BasePanel.AlignHorizontally.html#C1_Framework_BasePanel_AlignHorizontally_System_Drawing_Rectangle_C1_Framework_Alignment_System_Int32_System_Int32_">AlignHorizontally(Rectangle, Alignment, int, int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_BasePanel_AlignVertically_System_Drawing_Rectangle_C1_Framework_Alignment_System_Int32_System_Int32_" data-uid="C1.Framework.BasePanel.AlignVertically(System.Drawing.Rectangle,C1.Framework.Alignment,System.Int32,System.Int32)">
          <a class="xref" href="C1.Framework.BasePanel.AlignVertically.html#C1_Framework_BasePanel_AlignVertically_System_Drawing_Rectangle_C1_Framework_Alignment_System_Int32_System_Int32_">AlignVertically(Rectangle, Alignment, int, int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_BasePanel_Layout_System_Drawing_Graphics_" data-uid="C1.Framework.BasePanel.Layout(System.Drawing.Graphics)">
          <a class="xref" href="C1.Framework.BasePanel.Layout.html#C1_Framework_BasePanel_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_BasePanel_LayoutChildren_System_Drawing_Graphics_" data-uid="C1.Framework.BasePanel.LayoutChildren(System.Drawing.Graphics)">
          <a class="xref" href="C1.Framework.BasePanel.LayoutChildren.html#C1_Framework_BasePanel_LayoutChildren_System_Drawing_Graphics_">LayoutChildren(Graphics)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_BasePanel_SizeToContent_System_Drawing_Graphics_System_Boolean_" data-uid="C1.Framework.BasePanel.SizeToContent(System.Drawing.Graphics,System.Boolean)">
          <a class="xref" href="C1.Framework.BasePanel.SizeToContent.html#C1_Framework_BasePanel_SizeToContent_System_Drawing_Graphics_System_Boolean_">SizeToContent(Graphics, bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_BasePanel_SizeToContent_System_Drawing_Graphics_System_Boolean_System_Drawing_Size_" data-uid="C1.Framework.BasePanel.SizeToContent(System.Drawing.Graphics,System.Boolean,System.Drawing.Size)">
          <a class="xref" href="C1.Framework.BasePanel.SizeToContent.html#C1_Framework_BasePanel_SizeToContent_System_Drawing_Graphics_System_Boolean_System_Drawing_Size_">SizeToContent(Graphics, bool, Size)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_BasePanel_SizeToParent" data-uid="C1.Framework.BasePanel.SizeToParent">
          <a class="xref" href="C1.Framework.BasePanel.SizeToParent.html#C1_Framework_BasePanel_SizeToParent">SizeToParent()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
