C1.Win.C1Editor.4 Assembly > C1.Win.C1Editor.UICustomization Namespace : XHTMLItemBase Class |
'Declaration Public MustInherit Class XHTMLItemBase
public abstract class XHTMLItemBase
The derived classes are XHTMLBookmarkItem, XHTMLHyperlinkItem, XHTMLCellItem, XHTMLColumnItem, XHTMLImageItem, XHTMLFlashMovieItem, XHTMLTableItem
Implementing a custom dialog, you will receive an instance of a successor of the XHTMLItemBase class in the BindData method. Use it to bind the data to the dialog's UI.
void IImageItemDialog.BindData(XHTMLImageItem item) { _cbxWidthType.SelectedIndex = (int)Item.WidthType; _cbxHeightType.SelectedIndex = (int)Item.HeightType; _tbWidthValue.Value = Math.Max(Item.WidthValue, 1); _tbHeightValue.Value = Math.Max(Item.HeightValue, 1); _tbSource.DataBindings.Add("Text", Item, "Source"); _chkWidth.DataBindings.Add("Checked", Item, "UseWidth"); _chkHeight.DataBindings.Add("Checked", Item, "UseHeight"); _tbAlternate.DataBindings.Add("Text", Item, "Alternate"); SetButtonState(this, EventArgs.Empty); }
System.Object
C1.Win.C1Editor.UICustomization.XHTMLItemBase
C1.Win.C1Editor.UICustomization.XHTMLBookmarkItem
C1.Win.C1Editor.UICustomization.XHTMLCellItem
C1.Win.C1Editor.UICustomization.XHTMLColumnItem
C1.Win.C1Editor.UICustomization.XHTMLFlashMovieItem
C1.Win.C1Editor.UICustomization.XHTMLHyperlinkItem
C1.Win.C1Editor.UICustomization.XHTMLImageItem
C1.Win.C1Editor.UICustomization.XHTMLRowItem
C1.Win.C1Editor.UICustomization.XHTMLTableItem