Skip to main content
All docs

DiagramDefaultItemProperties.ShapeMaxWidth Property

Specifies the maximum width of a shape.

Namespace: DevExpress.Web.ASPxDiagram

Assembly: DevExpress.Web.ASPxDiagram.v24.1.dll

NuGet Package: DevExpress.Web


[DefaultValue(typeof(decimal), "-1")]
public decimal ShapeMaxWidth { get; set; }

Property Value

Type Default Description
Decimal "-1"

The width, in units.


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">
            ShapeMaxHeight="1" ShapeMaxWidth="1.5"
            ShapeMinHeight="0.5" ShapeMinWidth="0.75"/>

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

See Also