# C1.C1Preview.TableCell

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_TableCell" data-uid="C1.C1Preview.TableCell" class="text-break">TableCell Class
</h1>
  <div class="markdown level0 summary"><p>Represents a cell in a <a class="xref" href="C1.C1Preview.RenderTable.html">RenderTable</a>.</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"><span class="xref">TableCell</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icomparable">IComparable</a></div>
    <div><a class="xref" href="C1.C1Preview.IStyleOwner.html">IStyleOwner</a></div>
    <div><a class="xref" href="C1.C1Preview.IDocumentLocation.html">IDocumentLocation</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.PrintDocument.4.6.2.dll</h6>
  <h5 id="C1_C1Preview_TableCell_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[C1ClassSerialization(true)]
public class TableCell : IComparable, IStyleOwner, IDocumentLocation</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;C1ClassSerialization(True)&gt;
Public Class TableCell
    Implements IComparable, IStyleOwner, IDocumentLocation</code></pre>
  </div>
  <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_C1Preview_TableCell_Area" data-uid="C1.C1Preview.TableCell.Area">
          <a class="xref" href="C1.C1Preview.TableCell.Area.html#C1_C1Preview_TableCell_Area">Area</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.RenderArea.html">RenderArea</a> contained in the current cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_Bounds" data-uid="C1.C1Preview.TableCell.Bounds">
          <a class="xref" href="C1.C1Preview.TableCell.Bounds.html#C1_C1Preview_TableCell_Bounds">Bounds</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> describing the geometry of the current cell in the table.</p>
<p>
The location of the returned rectangle defines the location (column and row) of the current cell,
while its size defines the number of columns and rows spanned by the current cell.
</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_CellStyle" data-uid="C1.C1Preview.TableCell.CellStyle">
          <a class="xref" href="C1.C1Preview.TableCell.CellStyle.html#C1_C1Preview_TableCell_CellStyle">CellStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.Style.html">Style</a> that is used to render the content of the current cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_Col" data-uid="C1.C1Preview.TableCell.Col">
          <a class="xref" href="C1.C1Preview.TableCell.Col.html#C1_C1Preview_TableCell_Col">Col</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the 0-based index in the table of the column containing the current cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_HorzSplitBehavior" data-uid="C1.C1Preview.TableCell.HorzSplitBehavior">
          <a class="xref" href="C1.C1Preview.TableCell.HorzSplitBehavior.html#C1_C1Preview_TableCell_HorzSplitBehavior">HorzSplitBehavior</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating how the content of the current cell is treated
when the cell is split vertically between two horizontal (extension,
created when the document is too wide) pages.
(<a class="xref" href="C1.C1Preview.TableVector.CanSplit.html#C1_C1Preview_TableVector_CanSplit">CanSplit</a> should be <b>true</b> for this to happen).</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_Image" data-uid="C1.C1Preview.TableCell.Image">
          <a class="xref" href="C1.C1Preview.TableCell.Image.html#C1_C1Preview_TableCell_Image">Image</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the image contained in the current cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_LastCol" data-uid="C1.C1Preview.TableCell.LastCol">
          <a class="xref" href="C1.C1Preview.TableCell.LastCol.html#C1_C1Preview_TableCell_LastCol">LastCol</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the last column spanned by the current cell.
If <a class="xref" href="C1.C1Preview.TableCell.SpanCols.html#C1_C1Preview_TableCell_SpanCols">SpanCols</a> is <b>1</b>, the value of this property is equal to <a class="xref" href="C1.C1Preview.TableCell.Col.html#C1_C1Preview_TableCell_Col">Col</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_LastRow" data-uid="C1.C1Preview.TableCell.LastRow">
          <a class="xref" href="C1.C1Preview.TableCell.LastRow.html#C1_C1Preview_TableCell_LastRow">LastRow</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the last row spanned by the current cell.
If <a class="xref" href="C1.C1Preview.TableCell.SpanRows.html#C1_C1Preview_TableCell_SpanRows">SpanRows</a> is <b>1</b>, the value of this property is equal to <a class="xref" href="C1.C1Preview.TableCell.Row.html#C1_C1Preview_TableCell_Row">Row</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_Owner" data-uid="C1.C1Preview.TableCell.Owner">
          <a class="xref" href="C1.C1Preview.TableCell.Owner.html#C1_C1Preview_TableCell_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.TableCellCollection.html">TableCellCollection</a> containing the current cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_RenderObject" data-uid="C1.C1Preview.TableCell.RenderObject">
          <a class="xref" href="C1.C1Preview.TableCell.RenderObject.html#C1_C1Preview_TableCell_RenderObject">RenderObject</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.C1Preview.TableCell.RenderObject.html#C1_C1Preview_TableCell_RenderObject">RenderObject</a> contained in the current cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_RepeatGridLinesHorz" data-uid="C1.C1Preview.TableCell.RepeatGridLinesHorz">
          <a class="xref" href="C1.C1Preview.TableCell.RepeatGridLinesHorz.html#C1_C1Preview_TableCell_RepeatGridLinesHorz">RepeatGridLinesHorz</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether vertical gridlines should
be drawn when the cell is split between two horizontal (extension,
created when the document is too wide) pages.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_RepeatGridLinesVert" data-uid="C1.C1Preview.TableCell.RepeatGridLinesVert">
          <a class="xref" href="C1.C1Preview.TableCell.RepeatGridLinesVert.html#C1_C1Preview_TableCell_RepeatGridLinesVert">RepeatGridLinesVert</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether horizontal gridlines should
be drawn when the cell is split between two vertical (regular) pages.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_Row" data-uid="C1.C1Preview.TableCell.Row">
          <a class="xref" href="C1.C1Preview.TableCell.Row.html#C1_C1Preview_TableCell_Row">Row</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the 0-based index in the table of the row containing the current cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_SpanCols" data-uid="C1.C1Preview.TableCell.SpanCols">
          <a class="xref" href="C1.C1Preview.TableCell.SpanCols.html#C1_C1Preview_TableCell_SpanCols">SpanCols</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of columns spanned by the current cell.
Cannot be less than <b>1</b>, which is the default.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_SpanRows" data-uid="C1.C1Preview.TableCell.SpanRows">
          <a class="xref" href="C1.C1Preview.TableCell.SpanRows.html#C1_C1Preview_TableCell_SpanRows">SpanRows</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of rows spanned by the current cell.
Cannot be less than <b>1</b>, which is the default.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_Style" data-uid="C1.C1Preview.TableCell.Style">
          <a class="xref" href="C1.C1Preview.TableCell.Style.html#C1_C1Preview_TableCell_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.Style.html">Style</a> of the current cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_Table" data-uid="C1.C1Preview.TableCell.Table">
          <a class="xref" href="C1.C1Preview.TableCell.Table.html#C1_C1Preview_TableCell_Table">Table</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.RenderTable.html">RenderTable</a> containing the current cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_Tag" data-uid="C1.C1Preview.TableCell.Tag">
          <a class="xref" href="C1.C1Preview.TableCell.Tag.html#C1_C1Preview_TableCell_Tag">Tag</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets arbitrary data associated with the current cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_Text" data-uid="C1.C1Preview.TableCell.Text">
          <a class="xref" href="C1.C1Preview.TableCell.Text.html#C1_C1Preview_TableCell_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text contained in the current cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_VertSplitBehavior" data-uid="C1.C1Preview.TableCell.VertSplitBehavior">
          <a class="xref" href="C1.C1Preview.TableCell.VertSplitBehavior.html#C1_C1Preview_TableCell_VertSplitBehavior">VertSplitBehavior</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating how the content of the current cell is treated
when the cell is split horizontally between two vertical (regular) pages
(<a class="xref" href="C1.C1Preview.TableVector.CanSplit.html#C1_C1Preview_TableVector_CanSplit">CanSplit</a> should be <b>true</b> for this to happen).</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_C1Preview_TableCell_AssignFrom_C1_C1Preview_TableCell_" data-uid="C1.C1Preview.TableCell.AssignFrom(C1.C1Preview.TableCell)">
          <a class="xref" href="C1.C1Preview.TableCell.AssignFrom.html#C1_C1Preview_TableCell_AssignFrom_C1_C1Preview_TableCell_">AssignFrom(TableCell)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.C1Preview.TableCell.html">TableCell</a> to the current object.
The <a class="xref" href="C1.C1Preview.TableCell.Row.html#C1_C1Preview_TableCell_Row">Row</a> and <a class="xref" href="C1.C1Preview.TableCell.Col.html#C1_C1Preview_TableCell_Col">Col</a> properties
are not copied.
A &quot;deep&quot; copy of the <a class="xref" href="C1.C1Preview.TableCell.RenderObject.html#C1_C1Preview_TableCell_RenderObject">RenderObject</a> is made, i.e. a copy
of the <a class="xref" href="C1.C1Preview.TableCell.RenderObject.html#C1_C1Preview_TableCell_RenderObject">RenderObject</a> is created and assigned to the
newly created cell's <a class="xref" href="C1.C1Preview.TableCell.RenderObject.html#C1_C1Preview_TableCell_RenderObject">RenderObject</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_IsVisible" data-uid="C1.C1Preview.TableCell.IsVisible">
          <a class="xref" href="C1.C1Preview.TableCell.IsVisible.html#C1_C1Preview_TableCell_IsVisible">IsVisible()</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the current cell is visible in the containing table.
A cell is visible if it spans at least one visible row and column
(see <a class="xref" href="C1.C1Preview.TableVector.Visible.html#C1_C1Preview_TableVector_Visible">Visible</a>).</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_ShouldSerializeCellStyle" data-uid="C1.C1Preview.TableCell.ShouldSerializeCellStyle">
          <a class="xref" href="C1.C1Preview.TableCell.ShouldSerializeCellStyle.html#C1_C1Preview_TableCell_ShouldSerializeCellStyle">ShouldSerializeCellStyle()</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether the <a class="xref" href="C1.C1Preview.TableCell.CellStyle.html#C1_C1Preview_TableCell_CellStyle">CellStyle</a> property should be serialized.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_TableCell_ShouldSerializeStyle" data-uid="C1.C1Preview.TableCell.ShouldSerializeStyle">
          <a class="xref" href="C1.C1Preview.TableCell.ShouldSerializeStyle.html#C1_C1Preview_TableCell_ShouldSerializeStyle">ShouldSerializeStyle()</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether the <a class="xref" href="C1.C1Preview.TableCell.Style.html#C1_C1Preview_TableCell_Style">Style</a> property should be serialized.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="C1.C1Preview.TableRow.html">TableRow</a></div>
      <div><a class="xref" href="C1.C1Preview.TableCol.html">TableCol</a></div>
  </div>

</div>
