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.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
#Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to Enable |
---|---|---|
ASP. |
Diagram |
|
ASP. |
ASPx |
|
#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.