# C1.Framework.DockPanel

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_DockPanel" data-uid="C1.Framework.DockPanel" class="text-break">DockPanel Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.Framework.DockPanel.html">DockPanel</a> is a layout panel, that layouts children elements to the left, right, top, bottom or center of the panel.</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">DockPanel</span></div>
      <div class="level4"><a class="xref" href="C1.Framework.ListBoxElement.html">ListBoxElement</a></div>
      <div class="level4"><a class="xref" href="C1.Framework.TabElement.html">TabElement</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_DockPanel_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DockPanel : BasePanel, ISupportUia</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DockPanel
    Inherits BasePanel
    Implements ISupportUia</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_DockPanel__ctor" data-uid="C1.Framework.DockPanel.#ctor">
          <a class="xref" href="C1.Framework.DockPanel.-ctor.html#C1_Framework_DockPanel__ctor">DockPanel()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.DockPanel.html">DockPanel</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_DockPanel__ctor_C1_Framework_Style_" data-uid="C1.Framework.DockPanel.#ctor(C1.Framework.Style)">
          <a class="xref" href="C1.Framework.DockPanel.-ctor.html#C1_Framework_DockPanel__ctor_C1_Framework_Style_">DockPanel(Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.DockPanel.html">DockPanel</a> with the specified style.</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_DockPanel__dock" data-uid="C1.Framework.DockPanel._dock">
          <a class="xref" href="C1.Framework.DockPanel._dock.html">_dock</a>
        </td>
        <td class="markdown level1 summary"></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_DockPanel_AddChild_C1_Framework_Element_System_Windows_Forms_DockStyle_" data-uid="C1.Framework.DockPanel.AddChild(C1.Framework.Element,System.Windows.Forms.DockStyle)">
          <a class="xref" href="C1.Framework.DockPanel.AddChild.html#C1_Framework_DockPanel_AddChild_C1_Framework_Element_System_Windows_Forms_DockStyle_">AddChild(Element, DockStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds child element with the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.dockstyle">DockStyle</a> option.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_DockPanel_Clone" data-uid="C1.Framework.DockPanel.Clone">
          <a class="xref" href="C1.Framework.DockPanel.Clone.html#C1_Framework_DockPanel_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a clone of this element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_DockPanel_GetDock_C1_Framework_Element_" data-uid="C1.Framework.DockPanel.GetDock(C1.Framework.Element)">
          <a class="xref" href="C1.Framework.DockPanel.GetDock.html#C1_Framework_DockPanel_GetDock_C1_Framework_Element_">GetDock(Element)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.dockstyle">DockStyle</a> option used for the specified child element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_DockPanel_Layout_System_Drawing_Graphics_" data-uid="C1.Framework.DockPanel.Layout(System.Drawing.Graphics)">
          <a class="xref" href="C1.Framework.DockPanel.Layout.html#C1_Framework_DockPanel_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_DockPanel_LayoutChildren_System_Drawing_Graphics_" data-uid="C1.Framework.DockPanel.LayoutChildren(System.Drawing.Graphics)">
          <a class="xref" href="C1.Framework.DockPanel.LayoutChildren.html#C1_Framework_DockPanel_LayoutChildren_System_Drawing_Graphics_">LayoutChildren(Graphics)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_DockPanel_SetDock_C1_Framework_Element_System_Windows_Forms_DockStyle_" data-uid="C1.Framework.DockPanel.SetDock(C1.Framework.Element,System.Windows.Forms.DockStyle)">
          <a class="xref" href="C1.Framework.DockPanel.SetDock.html#C1_Framework_DockPanel_SetDock_C1_Framework_Element_System_Windows_Forms_DockStyle_">SetDock(Element, DockStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Changes the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.dockstyle">DockStyle</a> option for the specified child element.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
