Back to Devexpress

DiagramToolboxShape Class

aspnet-devexpress-dot-web-dot-aspxdiagram-ad455c3b.md

latest2.5 KB
Original Source

DiagramToolboxShape Class

Represents a shape in the context toolbox.

Namespace : DevExpress.Web.ASPxDiagram

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

NuGet Package : DevExpress.Web

Declaration

csharp
public class DiagramToolboxShape :
    CollectionItem
vb
Public Class DiagramToolboxShape
    Inherits CollectionItem

The following members return DiagramToolboxShape objects:

Remarks

Use the Type property to add a default shape or the CustomShapeType property to add a custom shape to the context toolbox.

aspx
<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>

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

Inheritance

Object StateManager CollectionItem DiagramToolboxShape

See Also

DiagramToolboxShape Members

DevExpress.Web.ASPxDiagram Namespace