# C1.Win.C1Editor.UICustomization.XHTMLCellItem

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Editor_UICustomization_XHTMLCellItem" data-uid="C1.Win.C1Editor.UICustomization.XHTMLCellItem" class="text-break">XHTMLCellItem Class
</h1>
  <div class="markdown level0 summary"><p>Provides data to bind to and use in a custom Table Cell edit dialog.</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.C1Editor.UICustomization.XHTMLItemBase.html">XHTMLItemBase</a></div>
    <div class="level2"><span class="xref">XHTMLCellItem</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.C1Editor.UICustomization.html">C1.Win.C1Editor.UICustomization</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Editor.4.8.dll</h6>
  <h5 id="C1_Win_C1Editor_UICustomization_XHTMLCellItem_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class XHTMLCellItem : XHTMLItemBase</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class XHTMLCellItem
    Inherits XHTMLItemBase</code></pre>
  </div>
  <h5 id="C1_Win_C1Editor_UICustomization_XHTMLCellItem_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Implementing a custom Table cell dialog, you will receive an instance of the XHTMLCellItem class in the <a class="xref" href="C1.Win.C1Editor.UICustomization.ICellItemDialog.BindData.html#C1_Win_C1Editor_UICustomization_ICellItemDialog_BindData_C1_Win_C1Editor_UICustomization_XHTMLCellItem_">BindData(XHTMLCellItem)</a> method. 
            Use it to bind the data to the dialog's UI.</p>
</div>
  <h5 id="C1_Win_C1Editor_UICustomization_XHTMLCellItem_examples"><strong>Examples</strong></h5>
  <p>The code below binds data in the <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLCellItem.html">XHTMLCellItem</a> item to GUI controls of a custom dialog form.</p>
<pre><code class="lang-csharp">void ICellItemDialog.BindData(XHTMLCellItem Item)
{
    _cbxVerticalAlignment.SelectedIndex = (int)Item.VerticalAlignment;
    _cbxHorizontalAlignment.SelectedIndex = (int)Item.HorizontalAlignment;
    _nudColSpan.DataBindings.Add("Value", Item, "ColSpan");
    _nudRowSpan.DataBindings.Add("Value", Item, "RowSpan");
    _chbHeader.DataBindings.Add("Checked", Item, "IsHeader");
}</code></pre>

  <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_C1Editor_UICustomization_XHTMLCellItem_ColSpan" data-uid="C1.Win.C1Editor.UICustomization.XHTMLCellItem.ColSpan">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLCellItem.ColSpan.html#C1_Win_C1Editor_UICustomization_XHTMLCellItem_ColSpan">ColSpan</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of columns in the table that the cell spans.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLCellItem_HorizontalAlignment" data-uid="C1.Win.C1Editor.UICustomization.XHTMLCellItem.HorizontalAlignment">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLCellItem.HorizontalAlignment.html#C1_Win_C1Editor_UICustomization_XHTMLCellItem_HorizontalAlignment">HorizontalAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies horizontal alignment of the cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLCellItem_IsHeader" data-uid="C1.Win.C1Editor.UICustomization.XHTMLCellItem.IsHeader">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLCellItem.IsHeader.html#C1_Win_C1Editor_UICustomization_XHTMLCellItem_IsHeader">IsHeader</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a Boolean value indicating whether the cell belongs to a header.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLCellItem_RowSpan" data-uid="C1.Win.C1Editor.UICustomization.XHTMLCellItem.RowSpan">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLCellItem.RowSpan.html#C1_Win_C1Editor_UICustomization_XHTMLCellItem_RowSpan">RowSpan</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of rows in the table that the cell spans.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLCellItem_VerticalAlignment" data-uid="C1.Win.C1Editor.UICustomization.XHTMLCellItem.VerticalAlignment">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLCellItem.VerticalAlignment.html#C1_Win_C1Editor_UICustomization_XHTMLCellItem_VerticalAlignment">VerticalAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies vertical alignment of the cell.</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_C1Editor_UICustomization_XHTMLCellItem_BuildXml" data-uid="C1.Win.C1Editor.UICustomization.XHTMLCellItem.BuildXml">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLCellItem.BuildXml.html#C1_Win_C1Editor_UICustomization_XHTMLCellItem_BuildXml">BuildXml()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLCellItem_ParseSourceNode" data-uid="C1.Win.C1Editor.UICustomization.XHTMLCellItem.ParseSourceNode">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLCellItem.ParseSourceNode.html#C1_Win_C1Editor_UICustomization_XHTMLCellItem_ParseSourceNode">ParseSourceNode()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLCellItem_StateEqual_C1_Win_C1Editor_UICustomization_XHTMLItemBase_" data-uid="C1.Win.C1Editor.UICustomization.XHTMLCellItem.StateEqual(C1.Win.C1Editor.UICustomization.XHTMLItemBase)">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLCellItem.StateEqual.html#C1_Win_C1Editor_UICustomization_XHTMLCellItem_StateEqual_C1_Win_C1Editor_UICustomization_XHTMLItemBase_">StateEqual(XHTMLItemBase)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use only.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="C1.Win.C1Editor.UICustomization.CustomDialogs.TableCellDialog.html#C1_Win_C1Editor_UICustomization_CustomDialogs_TableCellDialog">TableCellDialog</a></div>
  </div>

</div>
