Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.5.2 Assembly / C1.Win.C1Editor.UICustomization Namespace / XHTMLTableItem Class
Members Example

In This Topic
    XHTMLTableItem Class
    In This Topic
    Provides data to bind to and use in a custom Table edit dialog.
    Object Model
    XHTMLTableItem Class
    Syntax
    'Declaration
     
    Public Class XHTMLTableItem 
       Inherits XHTMLItemBase
    public class XHTMLTableItem : XHTMLItemBase 
    Remarks

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

    Example
    The code below binds data in the XHTMLTableItem item to GUI controls of a custom dialog form.
    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.C1Editor.UICustomization.XHTMLItemBase
          C1.Win.C1Editor.UICustomization.XHTMLTableItem

    See Also