# C1.Framework.ContentElement

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_ContentElement" data-uid="C1.Framework.ContentElement" class="text-break">ContentElement Class
</h1>
  <div class="markdown level0 summary"><p>Abstract class for elements that display text or images.</p>
<p>Derived classes should override <a class="xref" href="C1.Framework.ContentElement.GetValue.html#C1_Framework_ContentElement_GetValue">GetValue()</a> method to 
provide the content (text, images, formatted values).</p>
<p>This class does not have child elements.</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"><span class="xref">ContentElement</span></div>
      <div class="level3"><a class="xref" href="C1.Framework.ImageElement.html">ImageElement</a></div>
      <div class="level3"><a class="xref" href="C1.Framework.TextElement.html">TextElement</a></div>
      <div class="level3"><a class="xref" href="C1.Framework.ValueElement.html">ValueElement</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_ContentElement_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class ContentElement : Element, ISupportUia</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class ContentElement
    Inherits Element
    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_ContentElement__ctor" data-uid="C1.Framework.ContentElement.#ctor">
          <a class="xref" href="C1.Framework.ContentElement.-ctor.html#C1_Framework_ContentElement__ctor">ContentElement()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Framework.ContentElement.html">ContentElement</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ContentElement__ctor_C1_Framework_Style_" data-uid="C1.Framework.ContentElement.#ctor(C1.Framework.Style)">
          <a class="xref" href="C1.Framework.ContentElement.-ctor.html#C1_Framework_ContentElement__ctor_C1_Framework_Style_">ContentElement(Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Framework.ContentElement.html">ContentElement</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_Framework_ContentElement_GetValue" data-uid="C1.Framework.ContentElement.GetValue">
          <a class="xref" href="C1.Framework.ContentElement.GetValue.html#C1_Framework_ContentElement_GetValue">GetValue()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the value represented by this <a class="xref" href="C1.Framework.ContentElement.html">ContentElement</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ContentElement_Layout_System_Drawing_Graphics_" data-uid="C1.Framework.ContentElement.Layout(System.Drawing.Graphics)">
          <a class="xref" href="C1.Framework.ContentElement.Layout.html#C1_Framework_ContentElement_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_ContentElement_RenderContent_System_Drawing_Graphics_System_Drawing_Rectangle_" data-uid="C1.Framework.ContentElement.RenderContent(System.Drawing.Graphics,System.Drawing.Rectangle)">
          <a class="xref" href="C1.Framework.ContentElement.RenderContent.html#C1_Framework_ContentElement_RenderContent_System_Drawing_Graphics_System_Drawing_Rectangle_">RenderContent(Graphics, Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Renders the element contents into the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a> object at the specified location.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ContentElement_ToString" data-uid="C1.Framework.ContentElement.ToString">
          <a class="xref" href="C1.Framework.ContentElement.ToString.html#C1_Framework_ContentElement_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a string representation of this <a class="xref" href="C1.Framework.ContentElement.html">ContentElement</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
