MVCxDiagramToolboxGroupCollection.Add(Action<DiagramToolboxGroup>) Method
In This Article
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.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public void Add(
Action<DiagramToolboxGroup> method
)
#Parameters
Name | Type | Description |
---|---|---|
method | Action<Diagram |
A delegate method that accepts the created Diagram |
#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