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.

DiagramDefaultItemProperties.ShapeMaxWidth Property

Specifies the maximum width of a shape.

Namespace: DevExpress.Web.ASPxDiagram

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

Declaration

[DefaultValue(typeof(decimal), "-1")]
public decimal ShapeMaxWidth { get; set; }
<DefaultValue(GetType(Decimal), "-1")>
Public Property ShapeMaxWidth As Decimal

Property Value

Type Default Description
Decimal

"-1"

The width, in units.

Remarks

Use the following properties to specify resizing restrictions for every shape: ShapeMaxHeight, ShapeMaxWidth, ShapeMinHeight, and ShapeMinWidth.

<dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px" Units="In">
         <DefaultItemProperties 
            ShapeMaxHeight="1" ShapeMaxWidth="1.5"
            ShapeMinHeight="0.5" ShapeMinWidth="0.75"/>
         ...
</dx:ASPxDiagram>

Use the properties of the DiagramCustomShape object (for instance, MaxWidth) to specify the restrictions for a custom shape.

See Also