Skip to main content
A newer version of this page is available. .

ASPxHtmlEditor.CreateDefaultToolbars(Boolean) Method

Creates a collection of default toolbars, specifying what to do with toolbars that already exist within the ASPxHtmlEditor.Toolbars collection.

Namespace: DevExpress.Web.ASPxHtmlEditor

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

Declaration

public void CreateDefaultToolbars(
    bool clearExistingToolbars
)

Parameters

Name Type Description
clearExistingToolbars Boolean

true to delete existing toolbars; false to add the default toolbars to the collection.

Remarks

Use the CreateDefaultToolbars method, to manually create default toolbars within the ASPxHtmlEditor. The method’s clearExistingToolbars parameter allows you to specify how toolbars that already exist within the ASPxHtmlEditor.Toolbars collection are dealt with.

Custom toolbars can be added to the ASPxHtmlEditor.Toolbars collection using the collection’s HtmlEditorToolbarCollection.Add method.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateDefaultToolbars(Boolean) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also