Skip to main content
All docs
V24.2

DiagramDefaultItemProperties.ShapeMaxWidth Property

Specifies the maximum width of a shape.

Namespace: DevExpress.Web.ASPxDiagram

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

Declaration

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

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