Back to Devexpress

ASPxHtmlEditor.ToolbarMode Property

aspnet-devexpress-dot-web-dot-aspxhtmleditor-dot-aspxhtmleditor-759acd73.md

latest3.1 KB
Original Source

ASPxHtmlEditor.ToolbarMode Property

Specifies the type of the ASPxHtmlEditor toolbar.

Namespace : DevExpress.Web.ASPxHtmlEditor

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

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(HtmlEditorToolbarMode.Menu)]
public HtmlEditorToolbarMode ToolbarMode { get; set; }
vb
<DefaultValue(HtmlEditorToolbarMode.Menu)>
Public Property ToolbarMode As HtmlEditorToolbarMode

Property Value

TypeDefaultDescription
HtmlEditorToolbarModeMenu

One of the HtmlEditorToolbarMode enumeration values.

|

Available values:

NameDescription
Menu

The toolbar for the HTML Editor is rendered as a menu.

| | Ribbon |

The toolbar for the HTML Editor is rendered as a ribbon.

| | ExternalRibbon |

An external ribbon is used by the HTML Editor as a toolbar.

| | None |

The HTML Editor has no toolbars.

|

Remarks

The ASPxHtmlEditor control supports either a menu or a ribbon toolbar element. Use the ToolbarMode property to specify the type of the toolbar. When a menu is used as a toolbar, use the ASPxHtmlEditor.Toolbars property to customize menu toolbars. When a ribbon is used as a toolbar, use the ASPxHtmlEditor.RibbonTabs property to customize ribbon tabs.

Additionally, ASPxHtmlEditor provides the capability to utilize an external ASPxRibbon control as a toolbar. To enable this functionality, set the ToolbarMode property to ExternalRibbon. The ribbon control used by the editor can be specified by the ASPxHtmlEditor.AssociatedRibbonID property.

See Also

HTML Editor

Ribbon

AssociatedRibbonID

Online Demo: HTML Editor - Toolbar Mode

Online Demo: HTML Editor - External Ribbon

ASPxHtmlEditor Class

ASPxHtmlEditor Members

DevExpress.Web.ASPxHtmlEditor Namespace