Provides data to bind to and use in a custom Table Cell edit dialog.

Namespace:  C1.Win.XmlEditor.UICustomization
Assembly:  C1.Win.XmlEditor.2 (in C1.Win.XmlEditor.2.dll)

Syntax

C#
public class XHTMLCellItem : XHTMLItemBase
Visual Basic (Declaration)
Public Class XHTMLCellItem _
	Inherits XHTMLItemBase

Remarks

Implementing a custom Table cell dialog, you will receive an instance of the XHTMLCellItem class in the BindData(XHTMLCellItem) method. Use it to bind the data to the dialog's UI.

Examples

The code below binds data in the XHTMLCellItem item to GUI controls of a custom dialog form.
Copy CodeC#
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");
}

Inheritance Hierarchy

System..::.Object
  C1.Win.XmlEditor.UICustomization..::.XHTMLItemBase
    C1.Win.XmlEditor.UICustomization..::.XHTMLCellItem

See Also