Skip to main content
All docs
V25.1
  • DiagramContextToolboxSettings.Shapes Property

    Lists the shapes that are displayed in the context toolbox.

    Namespace: DevExpress.Web.ASPxDiagram

    Assembly: DevExpress.Web.ASPxDiagram.v25.1.dll

    NuGet Package: DevExpress.Web

    Declaration

    public Collection<DiagramToolboxShape> Shapes { get; }

    Property Value

    Type Description
    Collection<DiagramToolboxShape>

    An array of shapes.

    Property Paths

    You can access this nested property as listed below:

    Object Type Path to Shapes
    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