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

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

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

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

    See Also