All docs
V20.2
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DiagramContextToolboxSettings.Shapes Property

Lists the shapes that are displayed in the context toolbox.

Namespace: DevExpress.Web.ASPxDiagram

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

Declaration

public Collection<DiagramToolboxShape> Shapes { get; }
Public ReadOnly Property Shapes As Collection(Of DiagramToolboxShape)

Property Value

Type Description
Collection<DiagramToolboxShape>

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
MVCxDiagram
ASP.NET Web Forms Controls ASPxDiagram

Remarks

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">
  <SettingsContextToolbox>
    <Shapes>
      <dx:DiagramToolboxShape CustomShapeType="pc" />
      <dx:DiagramToolboxShape CustomShapeType="laptop" />
      <dx:DiagramToolboxShape CustomShapeType="phone" />
      <dx:DiagramToolboxShape CustomShapeType="mobile" />
      <dx:DiagramToolboxShape Type="VerticalContainer" />
      <dx:DiagramToolboxShape Type="HorizontalContainer" />
    </Shapes>
  </SettingsContextToolbox>
  <CustomShapes>
    <dx:DiagramCustomShape CategoryName="hardware" Type="pc" Title="PC".../>
    ...
  </CustomShapes>
</dx:ASPxDiagram>

Diagram - Context Toolbox

NOTE

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

See Also