Back to Devexpress

ToolbarInsertLinkDialogButton Class

aspnet-devexpress-dot-web-dot-aspxhtmleditor-9445fb8e.md

latest3.6 KB
Original Source

ToolbarInsertLinkDialogButton Class

A default toolbar button that invokes a link dialog allowing a hyperlink to be inserted into the design view area.

Namespace : DevExpress.Web.ASPxHtmlEditor

Assembly : DevExpress.Web.ASPxHtmlEditor.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class ToolbarInsertLinkDialogButton :
    HtmlEditorToolbarItem
vb
Public Class ToolbarInsertLinkDialogButton
    Inherits HtmlEditorToolbarItem

Remarks

ASPxHtmlEditor supports working with links in the design view area, by using the specific link dialogs that can be invoked by clicking the Insert Link button (of the ToolbarInsertLinkDialogButton type).

You can add the Insert Link button to toolbars by using either the ASPxHtmlEditor designer at design time, or programmatically.

csharp
protected void Page_Load(object sender, EventArgs e)
{
    HtmlEditorToolbar stToolbar1 = HtmlEditorToolbar.CreateStandardToolbar1();
    ToolbarInsertLinkDialogButton linkButton = new ToolbarInsertLinkDialogButton();
    stToolbar1.Items.Add(linkButton);
    ASPxHtmlEditor1.Toolbars.Add(stToolbar1);
}
aspx
<dx:ASPxHtmlEditor ID="ASPxHtmlEditor1" runat="server">
    <Toolbars>
        <dx:HtmlEditorToolbar Name="StandardToolbar1">
            <Items>
                        <dx:ToolbarInsertLinkDialogButton>
                        </dx:ToolbarInsertLinkDialogButton>
            </Items>
        </dx:HtmlEditorToolbar>
    </Toolbars>
</dx:ASPxHtmlEditor>

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

Inheritance

Object StateManager CollectionItem ToolbarItemBase HtmlEditorToolbarItem ToolbarInsertLinkDialogButton

See Also

ToolbarInsertLinkDialogButton Members

HTML Editor

Default Toolbar Items

Menu Toolbar Items

Html Editor Designer

DevExpress.Web.ASPxHtmlEditor Namespace