# C1.C1Preview.TableCell.Text

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_TableCell_Text_" data-uid="C1.C1Preview.TableCell.Text*">Text Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_TableCell_Text_" data-uid="C1.C1Preview.TableCell.Text*"></a>
<h4 id="C1_C1Preview_TableCell_Text" data-uid="C1.C1Preview.TableCell.Text">Text</h4>
<div class="markdown level1 summary"><p>Gets or sets the text contained in the current cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string Text { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Text As String</code></pre>
</div>
<h5 id="C1_C1Preview_TableCell_Text_remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;
</code></pre>
<p>Setting this property checks the current value of the <a class="xref" href="C1.C1Preview.TableCell.RenderObject.html#C1_C1Preview_TableCell_RenderObject">RenderObject</a> property.
If it is a <a class="xref" href="C1.C1Preview.RenderText.html">RenderText</a>, the <code class="paramref">value</code> is assigned to that object's
<a class="xref" href="C1.C1Preview.RenderText.Text.html#C1_C1Preview_RenderText_Text">Text</a>.</p>

    <p>
Otherwise, a new <a class="xref" href="C1.C1Preview.RenderText.html">RenderText</a> initialized with <code class="paramref">value</code>
is created and assigned to <a class="xref" href="C1.C1Preview.TableCell.RenderObject.html#C1_C1Preview_TableCell_RenderObject">RenderObject</a>.
Note that properties from the old <a class="xref" href="C1.C1Preview.TableCell.RenderObject.html#C1_C1Preview_TableCell_RenderObject">RenderObject</a> are copied
to the newly created <a class="xref" href="C1.C1Preview.RenderText.html">RenderText</a> using the
<a class="xref" href="C1.C1Preview.RenderObject.AssignFrom.html#C1_C1Preview_RenderObject_AssignFrom_C1_C1Preview_RenderObject_">AssignFrom(RenderObject)</a> method.
In particular, this copies the style from the old object to the new one.
</p>
    <p>
Getting this property returns <a class="xref" href="C1.C1Preview.RenderText.Text.html#C1_C1Preview_RenderText_Text">Text</a> of <a class="xref" href="C1.C1Preview.RenderText.html">RenderText</a>
assigned to the <a class="xref" href="C1.C1Preview.TableCell.RenderObject.html#C1_C1Preview_TableCell_RenderObject">RenderObject</a> on the current cell, or an empty string
if the current value of <a class="xref" href="C1.C1Preview.TableCell.RenderObject.html#C1_C1Preview_TableCell_RenderObject">RenderObject</a> is not a <a class="xref" href="C1.C1Preview.RenderText.html">RenderText</a>.
</p>
</div>
<h5 id="C1_C1Preview_TableCell_Text_seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.C1Preview.TableCell.RenderObject.html#C1_C1Preview_TableCell_RenderObject">RenderObject</a></div>
    <div><a class="xref" href="C1.C1Preview.TableCell.Image.html#C1_C1Preview_TableCell_Image">Image</a></div>
    <div><a class="xref" href="C1.C1Preview.TableCell.Area.html#C1_C1Preview_TableCell_Area">Area</a></div>
</div>
</div>
