Skip to main content
A newer version of this page is available. .

DiagramToolboxSettings.Groups Property

Lists toolbox groups.

Namespace: DevExpress.Web.ASPxDiagram

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

NuGet Package: DevExpress.Web

Declaration

public Collection<DiagramToolboxGroup> Groups { get; }

Property Value

Type Description
Collection<DiagramToolboxGroup>

A collection of toolbox groups.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to Groups
ASP.NET Controls and MVC Extensions ASPxDiagram
.SettingsToolbox .Groups
ASP.NET MVC Extensions DiagramSettings
.SettingsToolbox .Groups
MVCxDiagram
.SettingsToolbox .Groups

Remarks

Use the Groups property to specify shape groups that are visible in the toolbox.

If the Groups collection is not specified, the General, Flowchart, and Containers default groups are visible.

<dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px">
    <SettingsToolbox ShapeIconsPerRow="6" Width="250" ShowSearch="false">
        <Groups>
            <dx:DiagramToolboxGroup Category="General" />
            <dx:DiagramToolboxGroup Category="Containers" />
            <dx:DiagramToolboxGroup Category="Custom" CustomCategoryName="hardware" Title="Hardware" />
        </Groups>
    </SettingsToolbox>
    <CustomShapes>
        <dx:DiagramCustomShape CategoryName="hardware" Type="internet" ... >
    ...    
</dx:ASPxDiagram>

Diagram toolbox

Run Demo: Custom Shapes

See Also