MVCxDiagramToolboxGroupCollection.Add() Method
Creates a new toolbox group and adds it to the collection.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
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