[]
        
(Showing Draft Content)

C1.Win.C1Editor.UICustomization.XHTMLColumnItem

XHTMLColumnItem Class

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

Inheritance
XHTMLColumnItem
Namespace: C1.Win.C1Editor.UICustomization
Assembly: C1.Win.C1Editor.4.8.dll
Syntax
public class XHTMLColumnItem : XHTMLItemBase
Remarks

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

Examples

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

Properties

Name Description
HorizontalAlignment

Specifies horizontal alignment of the table column.

Span

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

UseWidth

True, if column width is specified; otherwise false.

VerticalAlignment

Specifies vertical alignment of the table column.

WidthType

Specifies the units used to measure width.

WidthValue

Gets or sets the integer value of the column's width.

Methods

Name Description
BuildXml()

For internal use only.

ParseSourceNode()

For internal use only.

StateEqual(XHTMLItemBase)

For internal use only.

See Also