# C1.Win.Layout.C1DashboardLayout

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Layout_C1DashboardLayout" data-uid="C1.Win.Layout.C1DashboardLayout" class="text-break">C1DashboardLayout Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.Win.Layout.C1DashboardLayout.html">C1DashboardLayout</a> is a layout control that lets you design dynamic screens and dashboards.</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="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></div>
    <div class="level4"><span class="xref">C1DashboardLayout</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.idroptarget">IDropTarget</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isynchronizeinvoke">ISynchronizeInvoke</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.iwin32window">IWin32Window</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.ibindablecomponent">IBindableComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.iextenderprovider">IExtenderProvider</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Layout.html">C1.Win.Layout</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.DashboardLayout.10.dll</h6>
  <h5 id="C1_Win_Layout_C1DashboardLayout_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ToolboxBitmap(typeof(C1DashboardLayout), &quot;DashboardLayout.png&quot;)]
public class C1DashboardLayout : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IExtenderProvider, ISupportInitialize</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ToolboxBitmap(GetType(C1DashboardLayout), &quot;DashboardLayout.png&quot;)&gt;
Public Class C1DashboardLayout
    Inherits Control
    Implements IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IExtenderProvider, ISupportInitialize</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_Win_Layout_C1DashboardLayout__ctor" data-uid="C1.Win.Layout.C1DashboardLayout.#ctor">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.-ctor.html#C1_Win_Layout_C1DashboardLayout__ctor">C1DashboardLayout()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of <a class="xref" href="C1.Win.Layout.C1DashboardLayout.html">C1DashboardLayout</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_Win_Layout_C1DashboardLayout_DisplayRectangle" data-uid="C1.Win.Layout.C1DashboardLayout.DisplayRectangle">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.DisplayRectangle.html#C1_Win_Layout_C1DashboardLayout_DisplayRectangle">DisplayRectangle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the rectangle that represents the display area of the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_Items" data-uid="C1.Win.Layout.C1DashboardLayout.Items">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.Items.html#C1_Win_Layout_C1DashboardLayout_Items">Items</a>
        </td>
        <td class="markdown level1 summary"><p>Returns collection of DashbordItem instances of currently selected layout.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_LayoutType" data-uid="C1.Win.Layout.C1DashboardLayout.LayoutType">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.LayoutType.html#C1_Win_Layout_C1DashboardLayout_LayoutType">LayoutType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets current <a class="xref" href="C1.Win.Layout.C1DashboardLayout.LayoutType.html#C1_Win_Layout_C1DashboardLayout_LayoutType">LayoutType</a> layout type.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_Options" data-uid="C1.Win.Layout.C1DashboardLayout.Options">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.Options.html#C1_Win_Layout_C1DashboardLayout_Options">Options</a>
        </td>
        <td class="markdown level1 summary"><p>Gets <a class="xref" href="C1.Win.Layout.DashboardOptions.html">DashboardOptions</a> C1DashboardLayout options.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_Styles" data-uid="C1.Win.Layout.C1DashboardLayout.Styles">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.Styles.html#C1_Win_Layout_C1DashboardLayout_Styles">Styles</a>
        </td>
        <td class="markdown level1 summary"><p>Gets <a class="xref" href="C1.Win.Layout.Styles.DashboardTheme.html">DashboardTheme</a> C1DashboardLayout styles.</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_Win_Layout_C1DashboardLayout_AttachToLayout_C1_Win_Layout_ILayout_" data-uid="C1.Win.Layout.C1DashboardLayout.AttachToLayout(C1.Win.Layout.ILayout)">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.AttachToLayout.html#C1_Win_Layout_C1DashboardLayout_AttachToLayout_C1_Win_Layout_ILayout_">AttachToLayout(ILayout)</a>
        </td>
        <td class="markdown level1 summary"><p>Attaches the custom layout</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_BeginInit" data-uid="C1.Win.Layout.C1DashboardLayout.BeginInit">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.BeginInit.html#C1_Win_Layout_C1DashboardLayout_BeginInit">BeginInit()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_Dispose_System_Boolean_" data-uid="C1.Win.Layout.C1DashboardLayout.Dispose(System.Boolean)">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.Dispose.html#C1_Win_Layout_C1DashboardLayout_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Releases the unmanaged resources used by the System.Windows.Forms.Control and
its child controls and optionally releases the managed resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_EndInit" data-uid="C1.Win.Layout.C1DashboardLayout.EndInit">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.EndInit.html#C1_Win_Layout_C1DashboardLayout_EndInit">EndInit()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_GetCaption_System_Object_" data-uid="C1.Win.Layout.C1DashboardLayout.GetCaption(System.Object)">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.GetCaption.html#C1_Win_Layout_C1DashboardLayout_GetCaption_System_Object_">GetCaption(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets Caption for ItemContainer instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_GetSelectedItem" data-uid="C1.Win.Layout.C1DashboardLayout.GetSelectedItem">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.GetSelectedItem.html#C1_Win_Layout_C1DashboardLayout_GetSelectedItem">GetSelectedItem()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns currently selected <a class="xref" href="C1.Win.Layout.DashboardItem.html">DashboardItem</a></p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_LoadLayout_System_IO_Stream_" data-uid="C1.Win.Layout.C1DashboardLayout.LoadLayout(System.IO.Stream)">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.LoadLayout.html#C1_Win_Layout_C1DashboardLayout_LoadLayout_System_IO_Stream_">LoadLayout(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads layouts of <a class="xref" href="C1.Win.Layout.C1DashboardLayout.html">C1DashboardLayout</a> control from the XML file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_LoadLayout_System_String_" data-uid="C1.Win.Layout.C1DashboardLayout.LoadLayout(System.String)">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.LoadLayout.html#C1_Win_Layout_C1DashboardLayout_LoadLayout_System_String_">LoadLayout(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads layouts of <a class="xref" href="C1.Win.Layout.C1DashboardLayout.html">C1DashboardLayout</a> control from the XML file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_Maximize_C1_Win_Layout_DashboardItem_" data-uid="C1.Win.Layout.C1DashboardLayout.Maximize(C1.Win.Layout.DashboardItem)">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.Maximize.html#C1_Win_Layout_C1DashboardLayout_Maximize_C1_Win_Layout_DashboardItem_">Maximize(DashboardItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Maximizes the dashboard item container.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_OnHandleCreated_System_EventArgs_" data-uid="C1.Win.Layout.C1DashboardLayout.OnHandleCreated(System.EventArgs)">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.OnHandleCreated.html#C1_Win_Layout_C1DashboardLayout_OnHandleCreated_System_EventArgs_">OnHandleCreated(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the System.Windows.Forms.Control.HandleDestroyed event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_OnHandleDestroyed_System_EventArgs_" data-uid="C1.Win.Layout.C1DashboardLayout.OnHandleDestroyed(System.EventArgs)">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.OnHandleDestroyed.html#C1_Win_Layout_C1DashboardLayout_OnHandleDestroyed_System_EventArgs_">OnHandleDestroyed(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the System.Windows.Forms.Control.HandleDestroyed event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_OnItemContainerAction_C1_Win_Layout_ItemContainerActionEventArgs_" data-uid="C1.Win.Layout.C1DashboardLayout.OnItemContainerAction(C1.Win.Layout.ItemContainerActionEventArgs)">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.OnItemContainerAction.html#C1_Win_Layout_C1DashboardLayout_OnItemContainerAction_C1_Win_Layout_ItemContainerActionEventArgs_">OnItemContainerAction(ItemContainerActionEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises <a class="xref" href="C1.Win.Layout.C1DashboardLayout.ItemContainerAction.html">ItemContainerAction</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_OnItemContainerSelected_System_EventArgs_" data-uid="C1.Win.Layout.C1DashboardLayout.OnItemContainerSelected(System.EventArgs)">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.OnItemContainerSelected.html#C1_Win_Layout_C1DashboardLayout_OnItemContainerSelected_System_EventArgs_">OnItemContainerSelected(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises <a class="xref" href="C1.Win.Layout.C1DashboardLayout.ItemContainerSelected.html">ItemContainerSelected</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_OnPaintBackground_System_Windows_Forms_PaintEventArgs_" data-uid="C1.Win.Layout.C1DashboardLayout.OnPaintBackground(System.Windows.Forms.PaintEventArgs)">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.OnPaintBackground.html#C1_Win_Layout_C1DashboardLayout_OnPaintBackground_System_Windows_Forms_PaintEventArgs_">OnPaintBackground(PaintEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Paints the background of the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_OnPaintHeader_C1_Win_Layout_HeaderPaintEventArgs_" data-uid="C1.Win.Layout.C1DashboardLayout.OnPaintHeader(C1.Win.Layout.HeaderPaintEventArgs)">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.OnPaintHeader.html#C1_Win_Layout_C1DashboardLayout_OnPaintHeader_C1_Win_Layout_HeaderPaintEventArgs_">OnPaintHeader(HeaderPaintEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises <a class="xref" href="C1.Win.Layout.C1DashboardLayout.PaintHeader.html">PaintHeader</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_OnRightToLeftChanged_System_EventArgs_" data-uid="C1.Win.Layout.C1DashboardLayout.OnRightToLeftChanged(System.EventArgs)">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.OnRightToLeftChanged.html#C1_Win_Layout_C1DashboardLayout_OnRightToLeftChanged_System_EventArgs_">OnRightToLeftChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the RightToLeftChanged event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_ResetStyles" data-uid="C1.Win.Layout.C1DashboardLayout.ResetStyles">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.ResetStyles.html#C1_Win_Layout_C1DashboardLayout_ResetStyles">ResetStyles()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_Restore" data-uid="C1.Win.Layout.C1DashboardLayout.Restore">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.Restore.html#C1_Win_Layout_C1DashboardLayout_Restore">Restore()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the dashboard item container to it's original position and size.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_SaveLayout_System_IO_Stream_" data-uid="C1.Win.Layout.C1DashboardLayout.SaveLayout(System.IO.Stream)">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.SaveLayout.html#C1_Win_Layout_C1DashboardLayout_SaveLayout_System_IO_Stream_">SaveLayout(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves layouts of <a class="xref" href="C1.Win.Layout.C1DashboardLayout.html">C1DashboardLayout</a> control to the XML file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_SaveLayout_System_String_" data-uid="C1.Win.Layout.C1DashboardLayout.SaveLayout(System.String)">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.SaveLayout.html#C1_Win_Layout_C1DashboardLayout_SaveLayout_System_String_">SaveLayout(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves layouts of <a class="xref" href="C1.Win.Layout.C1DashboardLayout.html">C1DashboardLayout</a> control to the XML file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_SetCaption_System_Object_System_String_" data-uid="C1.Win.Layout.C1DashboardLayout.SetCaption(System.Object,System.String)">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.SetCaption.html#C1_Win_Layout_C1DashboardLayout_SetCaption_System_Object_System_String_">SetCaption(object, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets Caption for ItemContainer instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_SetId_System_Object_System_String_" data-uid="C1.Win.Layout.C1DashboardLayout.SetId(System.Object,System.String)">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.SetId.html#C1_Win_Layout_C1DashboardLayout_SetId_System_Object_System_String_">SetId(object, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets Id for ItemContainer instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_ShouldSerializeStyles" data-uid="C1.Win.Layout.C1DashboardLayout.ShouldSerializeStyles">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.ShouldSerializeStyles.html#C1_Win_Layout_C1DashboardLayout_ShouldSerializeStyles">ShouldSerializeStyles()</a>
        </td>
        <td class="markdown level1 summary"></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_Win_Layout_C1DashboardLayout_ItemContainerAction" data-uid="C1.Win.Layout.C1DashboardLayout.ItemContainerAction">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.ItemContainerAction.html">ItemContainerAction</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the ItemContainer is maximized, restored, hidden or shown.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_ItemContainerSelected" data-uid="C1.Win.Layout.C1DashboardLayout.ItemContainerSelected">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.ItemContainerSelected.html">ItemContainerSelected</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the ItemContainer is selected.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Layout_C1DashboardLayout_PaintHeader" data-uid="C1.Win.Layout.C1DashboardLayout.PaintHeader">
          <a class="xref" href="C1.Win.Layout.C1DashboardLayout.PaintHeader.html">PaintHeader</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the ItemContainer Header is redrawn.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
