Skip to main content

DiagramContextToolboxSettings.Shapes Property

Lists the shapes that are displayed in the context toolbox.

Namespace: DevExpress.Web.ASPxDiagram

Assembly: DevExpress.Web.ASPxDiagram.v22.2.dll

NuGet Package: DevExpress.Web


public Collection<DiagramToolboxShape> Shapes { get; }

Property Value

Type Description

An array of shapes.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to Shapes
ASP.NET MVC Extensions DiagramSettings
ASP.NET Web Forms Controls ASPxDiagram


Use the Shapes property to populate the context toolbox with a custom set of shapes. Every shape in the collection is represented by an object of the DiagramToolboxShape type. Use the Type property to add a default shape or the CustomShapeType property to add a custom shape to the context toolbox.

<dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px">
      <dx:DiagramToolboxShape CustomShapeType="pc" />
      <dx:DiagramToolboxShape CustomShapeType="laptop" />
      <dx:DiagramToolboxShape CustomShapeType="phone" />
      <dx:DiagramToolboxShape CustomShapeType="mobile" />
      <dx:DiagramToolboxShape Type="VerticalContainer" />
      <dx:DiagramToolboxShape Type="HorizontalContainer" />
    <dx:DiagramCustomShape CategoryName="hardware" Type="pc" Title="PC".../>

Diagram - Context Toolbox


When the Shapes property is specified, the Category and CustomCategoryName properties are not in effect.

See Also