Skip to main content
All docs
V24.1

DiagramDefaultItemProperties.ShapeMinWidth Property

Specifies the minimum width of a shape.

Namespace: DevExpress.Web.ASPxDiagram

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

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(typeof(decimal), "-1")]
public decimal ShapeMinWidth { 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, MinWidth) to specify the restrictions for a custom shape.

See Also