MVCxDiagramToolboxShapeCollection.Add() Method
In This Article
Creates a new shape and adds it to the collection.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public DiagramToolboxShape Add()
#Returns
Type | Description |
---|---|
Diagram |
The newly created shape. |
#Remarks
@Html.DevExpress().Diagram(settings => {
settings.Name = "Diagram";
var shape1 = settings.SettingsContextToolbox.Shapes.Add();
shape1.Type = DiagramShapeType.VerticalContainer;
var shape2 = settings.SettingsContextToolbox.Shapes.Add();
shape2.Type = DiagramShapeType.HorizontalContainer;
...
}).GetHtml()
See Also