# C1.WPF.OrgChart.C1OrgChart

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_OrgChart_C1OrgChart" data-uid="C1.WPF.OrgChart.C1OrgChart" class="text-break">C1OrgChart Class
</h1>
  <div class="markdown level0 summary"><p>Control that displays Organizational Charts.</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.windows.threading.dispatcherobject">DispatcherObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObject</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level6"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level7"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.itemscontrol">ItemsControl</a></div>
    <div class="level8"><span class="xref">C1OrgChart</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.animation.ianimatable">IAnimatable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iframeworkinputelement">IFrameworkInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iinputelement">IInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iqueryambient">IQueryAmbient</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iaddchild">IAddChild</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.icontainitemstorage">IContainItemStorage</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.OrgChart.html">C1.WPF.OrgChart</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.OrgChart.4.6.2.dll</h6>
  <h5 id="C1_WPF_OrgChart_C1OrgChart_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;_gRoot&quot;, Type = typeof(Grid))]
public class C1OrgChart : ItemsControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;_gRoot&quot;, Type:=GetType(Grid))&gt;
Public Class C1OrgChart
    Inherits ItemsControl
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage</code></pre>
  </div>
  <h5 id="C1_WPF_OrgChart_C1OrgChart_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>To use this control, set the following main properties:</p>
<p>
    <b>
        <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.itemscontrol.itemssource">ItemsSource</a>
    </b>: a hierarchical list of items to be shown on the chart.</p>
<p>
    <b>
        <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.itemscontrol.itemtemplate">ItemTemplate</a>
    </b>: template used to convert the items into visuals.</p>
<p>
    <b>
        <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ChildItemsPath.html#C1_WPF_OrgChart_C1OrgChart_ChildItemsPath">ChildItemsPath</a>
    </b>: property that contains the child items.</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_WPF_OrgChart_C1OrgChart__ctor" data-uid="C1.WPF.OrgChart.C1OrgChart.#ctor">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.-ctor.html#C1_WPF_OrgChart_C1OrgChart__ctor">C1OrgChart()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.html">C1OrgChart</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_WPF_OrgChart_C1OrgChart_ChildItemsPathProperty" data-uid="C1.WPF.OrgChart.C1OrgChart.ChildItemsPathProperty">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ChildItemsPathProperty.html">ChildItemsPathProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ChildItemsPath.html#C1_WPF_OrgChart_C1OrgChart_ChildItemsPath">ChildItemsPath</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_ChildSpacingProperty" data-uid="C1.WPF.OrgChart.C1OrgChart.ChildSpacingProperty">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ChildSpacingProperty.html">ChildSpacingProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ChildSpacing.html#C1_WPF_OrgChart_C1OrgChart_ChildSpacing">ChildSpacing</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_ConnectorDashArrayProperty" data-uid="C1.WPF.OrgChart.C1OrgChart.ConnectorDashArrayProperty">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorDashArrayProperty.html">ConnectorDashArrayProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorDashArray.html#C1_WPF_OrgChart_C1OrgChart_ConnectorDashArray">ConnectorDashArray</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_ConnectorDashCapProperty" data-uid="C1.WPF.OrgChart.C1OrgChart.ConnectorDashCapProperty">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorDashCapProperty.html">ConnectorDashCapProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorDashCap.html#C1_WPF_OrgChart_C1OrgChart_ConnectorDashCap">ConnectorDashCap</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_ConnectorDashOffsetProperty" data-uid="C1.WPF.OrgChart.C1OrgChart.ConnectorDashOffsetProperty">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorDashOffsetProperty.html">ConnectorDashOffsetProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorDashOffset.html#C1_WPF_OrgChart_C1OrgChart_ConnectorDashOffset">ConnectorDashOffset</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_ConnectorEndLineCapProperty" data-uid="C1.WPF.OrgChart.C1OrgChart.ConnectorEndLineCapProperty">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorEndLineCapProperty.html">ConnectorEndLineCapProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorEndLineCap.html#C1_WPF_OrgChart_C1OrgChart_ConnectorEndLineCap">ConnectorEndLineCap</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_ConnectorStartLineCapProperty" data-uid="C1.WPF.OrgChart.C1OrgChart.ConnectorStartLineCapProperty">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorStartLineCapProperty.html">ConnectorStartLineCapProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorStartLineCap.html#C1_WPF_OrgChart_C1OrgChart_ConnectorStartLineCap">ConnectorStartLineCap</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_ConnectorStrokeProperty" data-uid="C1.WPF.OrgChart.C1OrgChart.ConnectorStrokeProperty">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorStrokeProperty.html">ConnectorStrokeProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorStroke.html#C1_WPF_OrgChart_C1OrgChart_ConnectorStroke">ConnectorStroke</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_ConnectorThicknessProperty" data-uid="C1.WPF.OrgChart.C1OrgChart.ConnectorThicknessProperty">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorThicknessProperty.html">ConnectorThicknessProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorThickness.html#C1_WPF_OrgChart_C1OrgChart_ConnectorThickness">ConnectorThickness</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_HeaderProperty" data-uid="C1.WPF.OrgChart.C1OrgChart.HeaderProperty">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.HeaderProperty.html">HeaderProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.Header.html#C1_WPF_OrgChart_C1OrgChart_Header">Header</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_IsCollapsedProperty" data-uid="C1.WPF.OrgChart.C1OrgChart.IsCollapsedProperty">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.IsCollapsedProperty.html">IsCollapsedProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.IsCollapsed.html#C1_WPF_OrgChart_C1OrgChart_IsCollapsed">IsCollapsed</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_OrientationProperty" data-uid="C1.WPF.OrgChart.C1OrgChart.OrientationProperty">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.OrientationProperty.html">OrientationProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.Orientation.html#C1_WPF_OrgChart_C1OrgChart_Orientation">Orientation</a> dependency property.</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_WPF_OrgChart_C1OrgChart_ChildItemsPath" data-uid="C1.WPF.OrgChart.C1OrgChart.ChildItemsPath">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ChildItemsPath.html#C1_WPF_OrgChart_C1OrgChart_ChildItemsPath">ChildItemsPath</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the property that contains the collection of child objects.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_ChildNodes" data-uid="C1.WPF.OrgChart.C1OrgChart.ChildNodes">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ChildNodes.html#C1_WPF_OrgChart_C1OrgChart_ChildNodes">ChildNodes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a list of <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.html">C1OrgChart</a> objects that represent the child nodes
under this <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.html">C1OrgChart</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_ChildSpacing" data-uid="C1.WPF.OrgChart.C1OrgChart.ChildSpacing">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ChildSpacing.html#C1_WPF_OrgChart_C1OrgChart_ChildSpacing">ChildSpacing</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the spacing between items, in pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_ConnectorDashArray" data-uid="C1.WPF.OrgChart.C1OrgChart.ConnectorDashArray">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorDashArray.html#C1_WPF_OrgChart_C1OrgChart_ConnectorDashArray">ConnectorDashArray</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the collection of values that define the pattern of dashes and gaps used to
paint the connecting lines.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_ConnectorDashCap" data-uid="C1.WPF.OrgChart.C1OrgChart.ConnectorDashCap">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorDashCap.html#C1_WPF_OrgChart_C1OrgChart_ConnectorDashCap">ConnectorDashCap</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.penlinecap">PenLineCap</a> that specifies how to paint the ends of dashes
in the connecting lines.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_ConnectorDashOffset" data-uid="C1.WPF.OrgChart.C1OrgChart.ConnectorDashOffset">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorDashOffset.html#C1_WPF_OrgChart_C1OrgChart_ConnectorDashOffset">ConnectorDashOffset</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the distance within the dash pattern where a dash begins.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_ConnectorEndLineCap" data-uid="C1.WPF.OrgChart.C1OrgChart.ConnectorEndLineCap">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorEndLineCap.html#C1_WPF_OrgChart_C1OrgChart_ConnectorEndLineCap">ConnectorEndLineCap</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.penlinecap">PenLineCap</a> that specifies how to paint the end of the
connecting lines.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_ConnectorStartLineCap" data-uid="C1.WPF.OrgChart.C1OrgChart.ConnectorStartLineCap">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorStartLineCap.html#C1_WPF_OrgChart_C1OrgChart_ConnectorStartLineCap">ConnectorStartLineCap</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.penlinecap">PenLineCap</a> that specifies how to paint the start of the connecting lines.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_ConnectorStroke" data-uid="C1.WPF.OrgChart.C1OrgChart.ConnectorStroke">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorStroke.html#C1_WPF_OrgChart_C1OrgChart_ConnectorStroke">ConnectorStroke</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the brush used to paint the connecting lines.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_ConnectorThickness" data-uid="C1.WPF.OrgChart.C1OrgChart.ConnectorThickness">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ConnectorThickness.html#C1_WPF_OrgChart_C1OrgChart_ConnectorThickness">ConnectorThickness</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the thickness of the connecting lines.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_Header" data-uid="C1.WPF.OrgChart.C1OrgChart.Header">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.Header.html#C1_WPF_OrgChart_C1OrgChart_Header">Header</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the parent item for this <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.html">C1OrgChart</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_IsCollapsed" data-uid="C1.WPF.OrgChart.C1OrgChart.IsCollapsed">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.IsCollapsed.html#C1_WPF_OrgChart_C1OrgChart_IsCollapsed">IsCollapsed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the node is currently displaying its children.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_Orientation" data-uid="C1.WPF.OrgChart.C1OrgChart.Orientation">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.Orientation.html#C1_WPF_OrgChart_C1OrgChart_Orientation">Orientation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the direction in which child elements are laid out within the control.</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_WPF_OrgChart_C1OrgChart_ArrangeOverride_System_Windows_Size_" data-uid="C1.WPF.OrgChart.C1OrgChart.ArrangeOverride(System.Windows.Size)">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.ArrangeOverride.html#C1_WPF_OrgChart_C1OrgChart_ArrangeOverride_System_Windows_Size_">ArrangeOverride(Size)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_OnApplyTemplate" data-uid="C1.WPF.OrgChart.C1OrgChart.OnApplyTemplate">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.OnApplyTemplate.html#C1_WPF_OrgChart_C1OrgChart_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Get element references from control template.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_OrgChart_C1OrgChart_OnItemsChanged_System_Collections_Specialized_NotifyCollectionChangedEventArgs_" data-uid="C1.WPF.OrgChart.C1OrgChart.OnItemsChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs)">
          <a class="xref" href="C1.WPF.OrgChart.C1OrgChart.OnItemsChanged.html#C1_WPF_OrgChart_C1OrgChart_OnItemsChanged_System_Collections_Specialized_NotifyCollectionChangedEventArgs_">OnItemsChanged(NotifyCollectionChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
