[]
        
(Showing Draft Content)

C1.Win.C1Editor.UICustomization.XHTMLCellItem

XHTMLCellItem Class

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

Inheritance
XHTMLCellItem
Namespace: C1.Win.C1Editor.UICustomization
Assembly: C1.Win.C1Editor.4.8.dll
Syntax
public class XHTMLCellItem : 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.

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");
}

Properties

Name Description
ColSpan

Gets or sets the number of columns in the table that the cell spans.

HorizontalAlignment

Specifies horizontal alignment of the cell.

IsHeader

Gets or sets a Boolean value indicating whether the cell belongs to a header.

RowSpan

Gets or sets the number of rows in the table that the cell spans.

VerticalAlignment

Specifies vertical alignment of the cell.

Methods

Name Description
BuildXml()

For internal use only.

ParseSourceNode()

For internal use only.

StateEqual(XHTMLItemBase)

For internal use only.

See Also