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

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

Syntax

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

Remarks

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

Examples

The code below binds data in the XHTMLTableItem item to GUI controls of a custom dialog form.
Copy CodeC#
void ITableItemDialog.BindData(XHTMLTableItem item)
{
           _cbxWidthType.SelectedIndex = (int)Item.WidthType;
           _nudRowCount.DataBindings.Add("Value", Item, "RowCount");
           _nudColumnCount.DataBindings.Add("Value", Item, "ColumnCount");
           _tbWidthValue.DataBindings.Add("Value", Item, "WidthValue");
           _nudCellPadding.DataBindings.Add("Value", Item, "CellPadding");
           _nudCellSpacing.DataBindings.Add("Value", Item, "CellSpacing");
           _nudBorder.DataBindings.Add("Value", Item, "Border");
           _chkWidth.DataBindings.Add("Checked", Item, "UseWidth");
           _tbCaption.DataBindings.Add("Text", Item, "Caption");
           _tbSummary.DataBindings.Add("Text", Item, "Summary");
}

Inheritance Hierarchy

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

See Also