[]
Provides data to bind to and use in a custom Hyperlink edit dialog.
public class XHTMLHyperlinkItem : XHTMLItemBase
Implementing a custom Hyperlink dialog, you will receive an instance of the XHTMLHyperlinkItem class in the BindData(XHTMLHyperlinkItem) method. Use it to bind the data to the dialog's UI.
The code below binds data in the XHTMLHyperlinkItem item to GUI controls of a custom dialog form.
void IHyperlinkItemDialog.BindData(XHTMLHyperlinkItem item)
{
if (!string.IsNullOrEmpty(item.AccessKey) && item.AccessKey.Length > 1)
item.AccessKey = item.AccessKey.Substring(0, 1);
_tbText.DataBindings.Add("Text", item, "Text");
_tbLink.DataBindings.Add("Text", item, "Href");
_tbTitle.DataBindings.Add("Text", item, "Title");
_tbAccessKey.DataBindings.Add("Text", item, "AccessKey");
_tbTabIndex.DataBindings.Add("Value", item, "TabIndex");
_cmbTarget.DataBindings.Add("Text", item, "Target");
_tbText.Enabled = item.IsEmpty;
_tbText_TextChanged(this, EventArgs.Empty);
}
Name | Description |
---|---|
AccessKey | Specifies a keyboard shortcut to access the element. |
Href | Gets or sets the destination of the bookmark. |
IsEmpty | Returns a Boolean value indicating whether the link does not have inner text. |
TabIndex | Specifies the tab order of the element. |
Target | Specifies where to open the linked document. |
Text | Gets or sets hyperlink text. If the hyperlink is created/edited on a non-empty selection, this setting is ignored. |
Title | Gets or sets extra information about the element. |
Name | Description |
---|---|
BuildXml() | For internal use. |
GetNodeTemplate() | For internal use. |
ParseSourceNode() | For internal use. |
StateEqual(XHTMLItemBase) | Returns true if specified item is equal to the anchor. |