Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.8 Assembly / C1.Win.C1Editor.UICustomization Namespace / XHTMLHyperlinkItem Class
Members Example

In This Topic
    XHTMLHyperlinkItem Class
    In This Topic
    Provides data to bind to and use in a custom Hyperlink edit dialog.
    Object Model
    XHTMLHyperlinkItem Class
    Syntax
    'Declaration
     
    Public Class XHTMLHyperlinkItem 
       Inherits XHTMLItemBase
    public class XHTMLHyperlinkItem : XHTMLItemBase 
    Remarks

    Implementing a custom Hyperlink dialog, you will receive an instance of the XHTMLHyperlinkItem class in the IHyperlinkItemDialog.BindData method. Use it to bind the data to the dialog's UI.

    Example
    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);
    }
    Inheritance Hierarchy

    System.Object
       C1.Win.C1Editor.UICustomization.XHTMLItemBase
          C1.Win.C1Editor.UICustomization.XHTMLHyperlinkItem

    See Also