# C1.Framework.StackPanel

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_StackPanel" data-uid="C1.Framework.StackPanel" class="text-break">StackPanel Class
</h1>
  <div class="markdown level0 summary"><p>Panel that stacks children horizontally or vertically into a single line.</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">StackPanel</span></div>
      <div class="level4"><a class="xref" href="C1.Framework.ButtonElement.html">ButtonElement</a></div>
      <div class="level4"><a class="xref" href="C1.Framework.ColumnPanel.html">ColumnPanel</a></div>
      <div class="level4"><a class="xref" href="C1.Framework.RowPanel.html">RowPanel</a></div>
      <div class="level4"><a class="xref" href="C1.Framework.ScrollBarElement.html">ScrollBarElement</a></div>
      <div class="level4"><a class="xref" href="C1.Framework.ScrollableStackPanel.html">ScrollableStackPanel</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_StackPanel_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class StackPanel : BasePanel, ISupportUia</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class StackPanel
    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_StackPanel__ctor" data-uid="C1.Framework.StackPanel.#ctor">
          <a class="xref" href="C1.Framework.StackPanel.-ctor.html#C1_Framework_StackPanel__ctor">StackPanel()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.StackPanel.html">StackPanel</a> element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_StackPanel__ctor_C1_Framework_Style_" data-uid="C1.Framework.StackPanel.#ctor(C1.Framework.Style)">
          <a class="xref" href="C1.Framework.StackPanel.-ctor.html#C1_Framework_StackPanel__ctor_C1_Framework_Style_">StackPanel(Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.StackPanel.html">StackPanel</a> element with specified style options.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_StackPanel__ctor_C1_Framework_Style_System_Boolean_" data-uid="C1.Framework.StackPanel.#ctor(C1.Framework.Style,System.Boolean)">
          <a class="xref" href="C1.Framework.StackPanel.-ctor.html#C1_Framework_StackPanel__ctor_C1_Framework_Style_System_Boolean_">StackPanel(Style, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.StackPanel.html">StackPanel</a> element with specified orientation and style options.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_StackPanel__ctor_System_Boolean_" data-uid="C1.Framework.StackPanel.#ctor(System.Boolean)">
          <a class="xref" href="C1.Framework.StackPanel.-ctor.html#C1_Framework_StackPanel__ctor_System_Boolean_">StackPanel(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.StackPanel.html">StackPanel</a> element with specified orientation.</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_StackPanel_Orientation" data-uid="C1.Framework.StackPanel.Orientation">
          <a class="xref" href="C1.Framework.StackPanel.Orientation.html#C1_Framework_StackPanel_Orientation">Orientation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates the dimension by which child elements are stacked.</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_StackPanel_AlignChildren_System_Drawing_Graphics_" data-uid="C1.Framework.StackPanel.AlignChildren(System.Drawing.Graphics)">
          <a class="xref" href="C1.Framework.StackPanel.AlignChildren.html#C1_Framework_StackPanel_AlignChildren_System_Drawing_Graphics_">AlignChildren(Graphics)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_StackPanel_Layout_System_Drawing_Graphics_" data-uid="C1.Framework.StackPanel.Layout(System.Drawing.Graphics)">
          <a class="xref" href="C1.Framework.StackPanel.Layout.html#C1_Framework_StackPanel_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_StackPanel_LayoutChildren_System_Drawing_Graphics_" data-uid="C1.Framework.StackPanel.LayoutChildren(System.Drawing.Graphics)">
          <a class="xref" href="C1.Framework.StackPanel.LayoutChildren.html#C1_Framework_StackPanel_LayoutChildren_System_Drawing_Graphics_">LayoutChildren(Graphics)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
