Back to Devexpress

ASPxDiagram.SettingsContextToolbox Property

aspnet-devexpress-dot-web-dot-aspxdiagram-dot-aspxdiagram-3dbc0369.md

latest3.4 KB
Original Source

ASPxDiagram.SettingsContextToolbox Property

Provides access to the context toolbox’s settings.

Namespace : DevExpress.Web.ASPxDiagram

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

NuGet Package : DevExpress.Web

Declaration

csharp
public DiagramContextToolboxSettings SettingsContextToolbox { get; }
vb
Public ReadOnly Property SettingsContextToolbox As DiagramContextToolboxSettings

Property Value

TypeDescription
DiagramContextToolboxSettings

An object that contains the context toolbox’s settings.

|

Remarks

The context toolbox appears when you draw a connector from a shape and release it without it being connected to another shape. The toolbox allows users to create a shape at the end of the connector.

The context toolbox displays the category of the shape from which a user draws a connector, by default. Use the following properties to explicitly specify the shapes that the context toolbox displays.

aspx
<dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px">
  <SettingsContextToolbox Category="General"/>
</dx:ASPxDiagram>
aspx
<dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px">
  <SettingsContextToolbox CustomCategoryName="hardware" />
  <CustomShapes>
    <dx:DiagramCustomShape CategoryName="hardware" Type="pc" Title="PC".../>
    ...
  </CustomShapes>
</dx:ASPxDiagram>
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

Diagram Tools

ASPxDiagram Class

ASPxDiagram Members

DevExpress.Web.ASPxDiagram Namespace