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

MVCxDiagramToolboxGroupCollection.Add() Method

Creates a new toolbox group and adds it to the collection.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v20.2.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public DiagramToolboxGroup Add()

Returns

Type Description
DiagramToolboxGroup

The newly created group.

Remarks

@Html.DevExpress().Diagram(settings => {
    settings.Name = "Diagram";

    var customToolboxGroup = settings.SettingsToolbox.Groups.Add();
    customToolboxGroup.Category = DevExpress.Web.ASPxDiagram.DiagramShapeCategory.Custom;
    customToolboxGroup.CustomCategoryName = "hardware";
    customToolboxGroup.Title = "Hardware";

    settings.CustomShapes.Add(c => {
        c.Type = "internet";
        c.Category = "hardware";
        c.Title = "Internet";
    ...

}).Import(Model).GetHtml()
See Also