# C1.Win.C1Editor.UICustomization.XHTMLImageItem

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Editor_UICustomization_XHTMLImageItem" data-uid="C1.Win.C1Editor.UICustomization.XHTMLImageItem" class="text-break">XHTMLImageItem Class
</h1>
  <div class="markdown level0 summary"><p>Provides data to bind to and use in a custom Image 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">XHTMLImageItem</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_XHTMLImageItem_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class XHTMLImageItem : XHTMLItemBase</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class XHTMLImageItem
    Inherits XHTMLItemBase</code></pre>
  </div>
  <h5 id="C1_Win_C1Editor_UICustomization_XHTMLImageItem_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Implementing a custom Image dialog, you will receive an instance of the 
            XHTMLCellItem class in the <a class="xref" href="C1.Win.C1Editor.UICustomization.IImageItemDialog.BindData.html#C1_Win_C1Editor_UICustomization_IImageItemDialog_BindData_C1_Win_C1Editor_UICustomization_XHTMLImageItem_">BindData(XHTMLImageItem)</a> method. 
            Use it to bind the data to the dialog's UI.</p>
</div>
  <h5 id="C1_Win_C1Editor_UICustomization_XHTMLImageItem_examples"><strong>Examples</strong></h5>
  <p>The code below binds data in the <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLImageItem.html">XHTMLImageItem</a> item to GUI controls of a custom dialog form.</p>
<pre><code class="lang-csharp">void IImageItemDialog.BindData(XHTMLImageItem Item)
{
    _cbxWidthType.SelectedIndex = (int)Item.WidthType;
    _cbxHeightType.SelectedIndex = (int)Item.HeightType;
    _tbWidthValue.Value = Math.Max(Item.WidthValue, 1);
    _tbHeightValue.Value = Math.Max(Item.HeightValue, 1);
    _tbSource.DataBindings.Add("Text", Item, "Source");
    _chkWidth.DataBindings.Add("Checked", Item, "UseWidth");
    _chkHeight.DataBindings.Add("Checked", Item, "UseHeight");
    _tbAlternate.DataBindings.Add("Text", Item, "Alternate");
    _chkEmbedded.DataBinding.Add("Checked", Item, "Embedded");
}</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_XHTMLImageItem_Alternate" data-uid="C1.Win.C1Editor.UICustomization.XHTMLImageItem.Alternate">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLImageItem.Alternate.html#C1_Win_C1Editor_UICustomization_XHTMLImageItem_Alternate">Alternate</a>
        </td>
        <td class="markdown level1 summary"><p>Sets or retrieves a text alternative to the graphic.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLImageItem_Embedded" data-uid="C1.Win.C1Editor.UICustomization.XHTMLImageItem.Embedded">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLImageItem.Embedded.html#C1_Win_C1Editor_UICustomization_XHTMLImageItem_Embedded">Embedded</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether to get the embedded resource.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLImageItem_HeightType" data-uid="C1.Win.C1Editor.UICustomization.XHTMLImageItem.HeightType">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLImageItem.HeightType.html#C1_Win_C1Editor_UICustomization_XHTMLImageItem_HeightType">HeightType</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies the units used to measure height.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLImageItem_HeightValue" data-uid="C1.Win.C1Editor.UICustomization.XHTMLImageItem.HeightValue">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLImageItem.HeightValue.html#C1_Win_C1Editor_UICustomization_XHTMLImageItem_HeightValue">HeightValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the integer value of the image height.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLImageItem_Source" data-uid="C1.Win.C1Editor.UICustomization.XHTMLImageItem.Source">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLImageItem.Source.html#C1_Win_C1Editor_UICustomization_XHTMLImageItem_Source">Source</a>
        </td>
        <td class="markdown level1 summary"><p>Sets or retrieves the URL of the image.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLImageItem_UseHeight" data-uid="C1.Win.C1Editor.UICustomization.XHTMLImageItem.UseHeight">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLImageItem.UseHeight.html#C1_Win_C1Editor_UICustomization_XHTMLImageItem_UseHeight">UseHeight</a>
        </td>
        <td class="markdown level1 summary"><p><b>True</b>, if the image height is specified; otherwise <b>false</b>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLImageItem_UseWidth" data-uid="C1.Win.C1Editor.UICustomization.XHTMLImageItem.UseWidth">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLImageItem.UseWidth.html#C1_Win_C1Editor_UICustomization_XHTMLImageItem_UseWidth">UseWidth</a>
        </td>
        <td class="markdown level1 summary"><p><b>True</b>, if the image width is specified; otherwise <b>false</b>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLImageItem_WidthType" data-uid="C1.Win.C1Editor.UICustomization.XHTMLImageItem.WidthType">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLImageItem.WidthType.html#C1_Win_C1Editor_UICustomization_XHTMLImageItem_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_XHTMLImageItem_WidthValue" data-uid="C1.Win.C1Editor.UICustomization.XHTMLImageItem.WidthValue">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLImageItem.WidthValue.html#C1_Win_C1Editor_UICustomization_XHTMLImageItem_WidthValue">WidthValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the integer value of the image 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_XHTMLImageItem_BuildXml" data-uid="C1.Win.C1Editor.UICustomization.XHTMLImageItem.BuildXml">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLImageItem.BuildXml.html#C1_Win_C1Editor_UICustomization_XHTMLImageItem_BuildXml">BuildXml()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLImageItem_GetNodeTemplate" data-uid="C1.Win.C1Editor.UICustomization.XHTMLImageItem.GetNodeTemplate">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLImageItem.GetNodeTemplate.html#C1_Win_C1Editor_UICustomization_XHTMLImageItem_GetNodeTemplate">GetNodeTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLImageItem_ParseSourceNode" data-uid="C1.Win.C1Editor.UICustomization.XHTMLImageItem.ParseSourceNode">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLImageItem.ParseSourceNode.html#C1_Win_C1Editor_UICustomization_XHTMLImageItem_ParseSourceNode">ParseSourceNode()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLImageItem_SetCustomSelection_C1_Win_C1Editor_C1TextRange_" data-uid="C1.Win.C1Editor.UICustomization.XHTMLImageItem.SetCustomSelection(C1.Win.C1Editor.C1TextRange)">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLImageItem.SetCustomSelection.html#C1_Win_C1Editor_UICustomization_XHTMLImageItem_SetCustomSelection_C1_Win_C1Editor_C1TextRange_">SetCustomSelection(C1TextRange)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_UICustomization_XHTMLImageItem_StateEqual_C1_Win_C1Editor_UICustomization_XHTMLItemBase_" data-uid="C1.Win.C1Editor.UICustomization.XHTMLImageItem.StateEqual(C1.Win.C1Editor.UICustomization.XHTMLItemBase)">
          <a class="xref" href="C1.Win.C1Editor.UICustomization.XHTMLImageItem.StateEqual.html#C1_Win_C1Editor_UICustomization_XHTMLImageItem_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.ImageDialog.html#C1_Win_C1Editor_UICustomization_CustomDialogs_ImageDialog">ImageDialog</a></div>
  </div>

</div>
