[]
Provides data to bind to and use in a custom Image edit dialog.
public class XHTMLImageItem : XHTMLItemBase
Implementing a custom Image dialog, you will receive an instance of the XHTMLCellItem class in the BindData(XHTMLImageItem) method. Use it to bind the data to the dialog's UI.
The code below binds data in the XHTMLImageItem item to GUI controls of a custom dialog form.
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");
_chkEmbedded.DataBinding.Add("Checked", Item, "Embedded");
}
Name | Description |
---|---|
Alternate | Sets or retrieves a text alternative to the graphic. |
Embedded | Gets or sets whether to get the embedded resource. |
HeightType | Specifies the units used to measure height. |
HeightValue | Gets or sets the integer value of the image height. |
Source | Sets or retrieves the URL of the image. |
UseHeight | True, if the image height is specified; otherwise false. |
UseWidth | True, if the image width is specified; otherwise false. |
WidthType | Specifies the units used to measure width. |
WidthValue | Gets or sets the integer value of the image width. |
Name | Description |
---|---|
BuildXml() | For internal use only. |
GetNodeTemplate() | For internal use only. |
ParseSourceNode() | For internal use only. |
SetCustomSelection(C1TextRange) | For internal use only. |
StateEqual(XHTMLItemBase) | For internal use only. |