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

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

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

    Example
    The code below binds data in the XHTMLColumnItem item to GUI controls of a custom dialog form.
    void IColumnItemDialog.BindData(XHTMLColumnItem item)
    {
        _cbxWidthType.SelectedIndex = (int)Item.WidthType;
        _cbxVerticalAlignment.SelectedIndex = (int)Item.VerticalAlignment;
        _cbxHorizontalAlignment.SelectedIndex = (int)Item.HorizontalAlignment;
        _nudSpan.DataBindings.Add("Value", Item, "Span");
        _tbWidthValue.DataBindings.Add("Value", Item, "WidthValue");
        _chkWidth.DataBindings.Add("Checked", Item, "UseWidth");
    }
    Inheritance Hierarchy

    System.Object
       C1.Win.C1Editor.UICustomization.XHTMLItemBase
          C1.Win.C1Editor.UICustomization.XHTMLColumnItem

    See Also