Back to Devexpress

DiagramToolboxShape.Type Property

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

latest6.1 KB
Original Source

DiagramToolboxShape.Type Property

Specifies a default shape type.

Namespace : DevExpress.Web.ASPxDiagram

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

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(DiagramShapeType.Unset)]
public DiagramShapeType Type { get; set; }
vb
<DefaultValue(DiagramShapeType.Unset)>
Public Property Type As DiagramShapeType

Property Value

TypeDefaultDescription
DiagramShapeTypeUnset

The shape type.

|

Available values:

Show 44 items

NameDescription
Unset

The shape type is not set.

| | Text |

Text

| | Rectangle |

| | Ellipse |

| | Cross |

| | Triangle |

| | Diamond |

| | Heart |

| | Pentagon |

| | Hexagon |

| | Octagon |

| | Star |

| | ArrowLeft |

| | ArrowTop |

| | ArrowRight |

| | ArrowBottom |

| | ArrowNorthSouth |

| | ArrowEastWest |

| | Process |

| | Decision |

| | Terminator |

| | PredefinedProcess |

| | Document |

| | MultipleDocuments |

| | ManualInput |

| | Preparation |

| | Data |

| | Database |

| | HardDisk |

| | InternalStorage |

| | PaperTape |

| | ManualOperation |

| | Delay |

| | StoredData |

| | Display |

| | Merge |

| | Connector |

| | Or |

| | SummingJunction |

| | VerticalContainer |

| | HorizontalContainer |

| | CardWithImageOnLeft |

| | CardWithImageOnTop |

| | CardWithImageOnRight |

|

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>

See Also

DiagramToolboxShape Class

DiagramToolboxShape Members

DevExpress.Web.ASPxDiagram Namespace