MVCxDiagramToolboxGroupCollection.Add(Action<DiagramToolboxGroup>) Method
Adds a new toolbox group to the collection and allows you to customize the group in a delegate method implementation.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
Parameters
Name | Type | Description |
---|---|---|
method | Action<DiagramToolboxGroup> | A delegate method that accepts the created DiagramToolboxGroup as a parameter. |
Remarks
@Html.DevExpress().Diagram(settings => {
settings.Name = "Diagram";
settings.SettingsToolbox.Groups.Add(g => {
g.Category = DevExpress.Web.ASPxDiagram.DiagramShapeCategory.Containers;
});
settings.SettingsToolbox.Groups.Add(g => {
g.Category = DevExpress.Web.ASPxDiagram.DiagramShapeCategory.General;
});
}).Import(Model).GetHtml()
See Also