[]
Provides data to bind to and use in a custom Table edit dialog.
public class XHTMLTableItem : XHTMLItemBase
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.
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");
}
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. |
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. |