[]
        
(Showing Draft Content)

C1.Win.C1Editor.UICustomization.XHTMLTableItem

XHTMLTableItem Class

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

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

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

Examples

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

Properties

Name Description
Border

Sets or retrieves the width of the border to draw around the table.

Caption

Sets or retrieves the caption of the table.

CellPadding

Sets or retrieves the amount of space between the border of the cell and the content of the cell.

CellSpacing

Sets or retrieves the amount of space between cells in the table.

ColumnCount

Gets or sets the number of columns in the table.

ColumnCountInitial

Initial number of columns in the table.

RowCount

Gets or sets the number of rows in the table.

RowCountInitial

Initial number of rows in the table.

Summary

Sets or retrieves a description of the table.

UseWidth

True, if the table width is specified; otherwise false.

WidthType

Specifies the units used to measure width.

WidthValue

Gets or sets the integer value of the table width.

Methods

Name Description
BuildXml()

For internal use only.

GetNodeTemplate()

For internal use only.

ParseSourceNode()

For internal use only.

RaiseItemPropertiesChanged()

For internal use only.

SetCustomSelection(C1TextRange)

For internal use only.

SetDefaults()

For internal use only.

StateEqual(XHTMLItemBase)

For internal use only.

See Also