All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DiagramToolboxSettings.ShapeIconsPerRow Property

Specifies the number of shape icons in a row.

Namespace: DevExpress.Web.ASPxDiagram

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

Declaration

[DefaultValue(3)]
public int ShapeIconsPerRow { get; set; }
<DefaultValue(3)>
Public Property ShapeIconsPerRow As Integer

Property Value

Type Default Description
Int32

3

The number of shape icons.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShapeIconsPerRow
ASPxDiagram
.SettingsToolbox.ShapeIconsPerRow
DiagramSettings
.SettingsToolbox.ShapeIconsPerRow
MVCxDiagram
.SettingsToolbox.ShapeIconsPerRow

Remarks

<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

The size of a shape in the toolbox is determined automatically based on the toolbox width and the number of shapes per row. You can use the ToolboxWidthToHeightRatio property to change the aspect ratio of a custom shape in the toolbox.

See Also