# C1.Win.TreeView.CustomContentPresenter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_TreeView_CustomContentPresenter" data-uid="C1.Win.TreeView.CustomContentPresenter" class="text-break">CustomContentPresenter Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.html">CustomContentPresenter</a> is a layout panel with the only child element which always fills all available space.</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.Win.10/C1.Framework.Element.html">Element</a></div>
    <div class="level2"><a class="xref" href="../C1.Win.10/C1.Framework.BasePanel.html">BasePanel</a></div>
    <div class="level3"><span class="xref">CustomContentPresenter</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="../C1.Win.10/C1.Win.Accessibility.ISupportUia.html">ISupportUia</a></div>
    <div><a class="xref" href="../C1.Win.10/C1.Framework.IToolTipElement.html">IToolTipElement</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.TreeView.html">C1.Win.TreeView</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.TreeView.10.dll</h6>
  <h5 id="C1_Win_TreeView_CustomContentPresenter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class CustomContentPresenter : BasePanel, ISupportUia, IToolTipElement</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class CustomContentPresenter
    Inherits BasePanel
    Implements ISupportUia, IToolTipElement</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_TreeView_CustomContentPresenter__ctor" data-uid="C1.Win.TreeView.CustomContentPresenter.#ctor">
          <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.-ctor.html#C1_Win_TreeView_CustomContentPresenter__ctor">CustomContentPresenter()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.html">CustomContentPresenter</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_TreeView_CustomContentPresenter_Child" data-uid="C1.Win.TreeView.CustomContentPresenter.Child">
          <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.Child.html#C1_Win_TreeView_CustomContentPresenter_Child">Child</a>
        </td>
        <td class="markdown level1 summary"><p>Root <a class="xref" href="../C1.Win.10/C1.Framework.Element.html">Element</a> of <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.html">CustomContentPresenter</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_CustomContentPresenter_IsEnabled" data-uid="C1.Win.TreeView.CustomContentPresenter.IsEnabled">
          <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.IsEnabled.html#C1_Win_TreeView_CustomContentPresenter_IsEnabled">IsEnabled</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether this element and all its ancestors are enabled.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_CustomContentPresenter_IsHotSelected" data-uid="C1.Win.TreeView.CustomContentPresenter.IsHotSelected">
          <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.IsHotSelected.html#C1_Win_TreeView_CustomContentPresenter_IsHotSelected">IsHotSelected</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether this <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.html">CustomContentPresenter</a> is in the selected anh hot state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_CustomContentPresenter_IsSelected" data-uid="C1.Win.TreeView.CustomContentPresenter.IsSelected">
          <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.IsSelected.html#C1_Win_TreeView_CustomContentPresenter_IsSelected">IsSelected</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether this <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.html">CustomContentPresenter</a> is in the selected state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_CustomContentPresenter_IsUnfocusedSelected" data-uid="C1.Win.TreeView.CustomContentPresenter.IsUnfocusedSelected">
          <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.IsUnfocusedSelected.html#C1_Win_TreeView_CustomContentPresenter_IsUnfocusedSelected">IsUnfocusedSelected</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether this <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.html">CustomContentPresenter</a> is in the selected state and the <a class="xref" href="C1.Win.TreeView.C1TreeView.html">C1TreeView</a> hasn't focus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_CustomContentPresenter_Node" data-uid="C1.Win.TreeView.CustomContentPresenter.Node">
          <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.Node.html#C1_Win_TreeView_CustomContentPresenter_Node">Node</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Win.TreeView.C1TreeNode.html">C1TreeNode</a> that represents the <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.html">CustomContentPresenter</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_CustomContentPresenter_Owner" data-uid="C1.Win.TreeView.CustomContentPresenter.Owner">
          <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.Owner.html#C1_Win_TreeView_CustomContentPresenter_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Win.TreeView.C1TreeView.html">C1TreeView</a> of current <a class="xref" href="C1.Win.TreeView.C1TreeNode.html">C1TreeNode</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_CustomContentPresenter_ToolTipText" data-uid="C1.Win.TreeView.CustomContentPresenter.ToolTipText">
          <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.ToolTipText.html#C1_Win_TreeView_CustomContentPresenter_ToolTipText">ToolTipText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text that appears as a ToolTip for this <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.html">CustomContentPresenter</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_Win_TreeView_CustomContentPresenter_Layout_System_Drawing_Graphics_" data-uid="C1.Win.TreeView.CustomContentPresenter.Layout(System.Drawing.Graphics)">
          <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.Layout.html#C1_Win_TreeView_CustomContentPresenter_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_Win_TreeView_CustomContentPresenter_LayoutChildren_System_Drawing_Graphics_" data-uid="C1.Win.TreeView.CustomContentPresenter.LayoutChildren(System.Drawing.Graphics)">
          <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.LayoutChildren.html#C1_Win_TreeView_CustomContentPresenter_LayoutChildren_System_Drawing_Graphics_">LayoutChildren(Graphics)</a>
        </td>
        <td class="markdown level1 summary"><p>Update children layout and position.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_CustomContentPresenter_OnLostFocus_System_EventArgs_" data-uid="C1.Win.TreeView.CustomContentPresenter.OnLostFocus(System.EventArgs)">
          <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.OnLostFocus.html#C1_Win_TreeView_CustomContentPresenter_OnLostFocus_System_EventArgs_">OnLostFocus(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Called by the host control when this <a class="xref" href="../C1.Win.10/C1.Framework.Element.html">Element</a> loses the focus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_CustomContentPresenter_SetFormat_System_String_" data-uid="C1.Win.TreeView.CustomContentPresenter.SetFormat(System.String)">
          <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.SetFormat.html#C1_Win_TreeView_CustomContentPresenter_SetFormat_System_String_">SetFormat(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the format string used to display the value when the node cell is not in edit mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_CustomContentPresenter_SetShowFocusRectangle_System_Boolean_" data-uid="C1.Win.TreeView.CustomContentPresenter.SetShowFocusRectangle(System.Boolean)">
          <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.SetShowFocusRectangle.html#C1_Win_TreeView_CustomContentPresenter_SetShowFocusRectangle_System_Boolean_">SetShowFocusRectangle(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets a value indicating whether this element shows the focus rectangle or not.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_CustomContentPresenter_SetStyle_C1_Win_TreeView_TreeNodeCellStyles_" data-uid="C1.Win.TreeView.CustomContentPresenter.SetStyle(C1.Win.TreeView.TreeNodeCellStyles)">
          <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.SetStyle.html#C1_Win_TreeView_CustomContentPresenter_SetStyle_C1_Win_TreeView_TreeNodeCellStyles_">SetStyle(TreeNodeCellStyles)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the styles of this <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.html">CustomContentPresenter</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TreeView_CustomContentPresenter_SetValue_System_Object_" data-uid="C1.Win.TreeView.CustomContentPresenter.SetValue(System.Object)">
          <a class="xref" href="C1.Win.TreeView.CustomContentPresenter.SetValue.html#C1_Win_TreeView_CustomContentPresenter_SetValue_System_Object_">SetValue(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the value represented by this <span class="xref">C1.Win.TreeView.ICellContentPresenter</span>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
