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.

DiagramAutoLayoutSettings.EnableAutoSize Property

Specifies whether a shape's size automatically changes to fit the text when the control is bound to a data source.

Namespace: DevExpress.Web.ASPxDiagram

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

Declaration

[DefaultValue(true)]
public bool EnableAutoSize { get; set; }
<DefaultValue(True)>
Public Property EnableAutoSize As Boolean

Property Value

Type Default Description
Boolean

true

true to automatically resize shapes; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to EnableAutoSize
ASPxDiagram
.SettingsAutoLayout.EnableAutoSize
DiagramSettings
.SettingsAutoLayout.EnableAutoSize
MVCxDiagram
.SettingsAutoLayout.EnableAutoSize

Remarks

Shapes are automatically resized to fit the text when the Diagram control is bound to a data source. Set the AutoSizeEnable property to false to disable this functionality.

<dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px" NodeDataSourceID="DepartmentDemoDataSource" 
  OnNodeInserted="Diagram_NodeInserted">
    <SettingsAutoLayout EnableAutoSize="false" />
    <Mappings>
        <Node Key="ID" Text="DepartmentName" ParentKey="ParentID" />
    </Mappings>
</dx:ASPxDiagram>
NOTE

If the Mappings.Node.Width and Mappings.Node.Height properties are specified, shapes' sizes do not change automatically.

See Also