aspnet-devexpress-dot-web-dot-aspxdiagram-dot-aspxdiagram-3dbc0369.md
Provides access to the context toolbox’s settings.
Namespace : DevExpress.Web.ASPxDiagram
Assembly : DevExpress.Web.ASPxDiagram.v25.2.dll
NuGet Package : DevExpress.Web
public DiagramContextToolboxSettings SettingsContextToolbox { get; }
Public ReadOnly Property SettingsContextToolbox As DiagramContextToolboxSettings
| Type | Description |
|---|---|
| DiagramContextToolboxSettings |
An object that contains the context toolbox’s settings.
|
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.
Category - allows you to display every shape of a default shape category.
CustomCategoryName - allows you to display every shape of a custom shape category.
Shapes - allows you to display a custom collection of default and custom shapes.
<dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px">
<SettingsContextToolbox Category="General"/>
</dx:ASPxDiagram>
<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>
<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