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.ShapeMinWidth Property

Specifies the minimum width of a shape.

Namespace: DevExpress.Web.ASPxDiagram

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

Declaration

[DefaultValue(typeof(decimal), "-1")]
public decimal ShapeMinWidth { get; set; }
<DefaultValue(GetType(Decimal), "-1")>
Public Property ShapeMinWidth 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, MinWidth) to specify the restrictions for a custom shape.

See Also