# C1.Win.C1Editor.UICustomization.XHTMLColumnItem

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Editor_UICustomization_XHTMLColumnItem" data-uid="C1.Win.C1Editor.UICustomization.XHTMLColumnItem" class="text-break">XHTMLColumnItem Class
</h1>
  <div class="markdown level0 summary"><p>Provides data to bind to and use in a custom Table column 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">XHTMLColumnItem</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_XHTMLColumnItem_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class XHTMLColumnItem : XHTMLItemBase</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class XHTMLColumnItem
    Inherits XHTMLItemBase</code></pre>
  </div>
  <h5 id="C1_Win_C1Editor_UICustomization_XHTMLColumnItem_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Implementing a custom Table column dialog, you will receive an instance of the XHTMLColumnItem class in the <a class="xref" href="C1.Win.C1Editor.UICustomization.IColumnItemDialog.BindData.html#C1_Win_C1Editor_UICustomization_IColumnItemDialog_BindData_C1_Win_C1Editor_UICustomization_XHTMLColumnItem_">BindData(XHTMLColumnItem)</a> method. 
            Use it to bind the data to the dialog's UI.</p>
</div>
  <h5 id="C1_Win_C1Editor_UICustomization_XHTMLColumnItem_examples"><strong>Examples</strong></h5>
  <p>The code below binds data in the <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.html">XHTMLColumnItem</a> item to GUI controls of a custom dialog form.</p>
<pre><code class="lang-csharp">void IColumnItemDialog.BindData(XHTMLColumnItem item)
{
    _cbxWidthType.SelectedIndex = (int)Item.WidthType;
    _cbxVerticalAlignment.SelectedIndex = (int)Item.VerticalAlignment;
    _cbxHorizontalAlignment.SelectedIndex = (int)Item.HorizontalAlignment;
    _nudSpan.DataBindings.Add("Value", Item, "Span");
    _tbWidthValue.DataBindings.Add("Value", Item, "WidthValue");
    _chkWidth.DataBindings.Add("Checked", Item, "UseWidth");
}</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_XHTMLColumnItem_HorizontalAlignment" data-uid="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.HorizontalAlignment">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.HorizontalAlignment.html#C1_Win_C1Editor_UICustomization_XHTMLColumnItem_HorizontalAlignment">HorizontalAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies horizontal alignment of the table column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLColumnItem_Span" data-uid="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.Span">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.Span.html#C1_Win_C1Editor_UICustomization_XHTMLColumnItem_Span">Span</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of columns in the table that each cell of the column spans.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLColumnItem_UseWidth" data-uid="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.UseWidth">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.UseWidth.html#C1_Win_C1Editor_UICustomization_XHTMLColumnItem_UseWidth">UseWidth</a>
        </td>
        <td class="markdown level1 summary"><p><b>True</b>, if column width is specified; otherwise <b>false</b>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLColumnItem_VerticalAlignment" data-uid="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.VerticalAlignment">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.VerticalAlignment.html#C1_Win_C1Editor_UICustomization_XHTMLColumnItem_VerticalAlignment">VerticalAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies vertical alignment of the table column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLColumnItem_WidthType" data-uid="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.WidthType">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.WidthType.html#C1_Win_C1Editor_UICustomization_XHTMLColumnItem_WidthType">WidthType</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies the units used to measure width.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLColumnItem_WidthValue" data-uid="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.WidthValue">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.WidthValue.html#C1_Win_C1Editor_UICustomization_XHTMLColumnItem_WidthValue">WidthValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the integer value of the column's width.</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_XHTMLColumnItem_BuildXml" data-uid="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.BuildXml">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.BuildXml.html#C1_Win_C1Editor_UICustomization_XHTMLColumnItem_BuildXml">BuildXml()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLColumnItem_ParseSourceNode" data-uid="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.ParseSourceNode">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.ParseSourceNode.html#C1_Win_C1Editor_UICustomization_XHTMLColumnItem_ParseSourceNode">ParseSourceNode()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLColumnItem_StateEqual_C1_Win_C1Editor_UICustomization_XHTMLItemBase_" data-uid="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.StateEqual(C1.Win.C1Editor.UICustomization.XHTMLItemBase)">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLColumnItem.StateEqual.html#C1_Win_C1Editor_UICustomization_XHTMLColumnItem_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.TableColumnDialog.html#C1_Win_C1Editor_UICustomization_CustomDialogs_TableColumnDialog">TableColumnDialog</a></div>
  </div>

</div>
